How to integrate groups with AbstractBaseUser in django? -
how can add group capabilities custom django user model? seen i'm able inherit permissionsmixin not see group functionality in doing so. basically, need able add custom groups custom user model.
if custom django user model inherit abstractuser, default inherits permissionsmixin
class abstractuser(abstractbaseuser, permissionsmixin): """ abstract base class implementing featured user model admin-compliant permissions. username, password , email required. other fields optional. """ username = models.charfield(_('username'), max_length=30, unique=true, ...
so, u can use default groups options.
Comments
Post a Comment