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.

documentation


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -