I created a custom model for my django applications. Now I want to use the django system and the group system. I made permissions and groups, but when I use them in my user model take errors like
>>> john.groups.add(special_users)
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'MyCustomUserModel' object has no attribute 'groups'
I assume that I need to add additional code to my user model to integrate this function Can anyone help with this problem?
Zakos source
share