I am building an app with multiple roles defined through Django Groups. I started with a custom user model, defined as below. I am seeing a weird difference in the groups and permissions use when using a custom user model, like the inheritance is missing something. I would like to use a custom user model so I don’t use username
Tag: django-custom-user
TypeError: create_superuser() missing 1 required positional argument: ‘profile_picture’
I get the following error after adding the profile_picture field: This profile_picture field is an “ImageField” set as “Null = True”. I have tried the following: def create_user(…., profile_picture=None, ….). It didn’t work. and the error occurs only in command prompt when i create superuser from there. Here is my models.py Answer Well, you need to create the create_superuser function