I created a custom User model. It has a few extra fields, most notably a "date_of_birth" field. Now when I try to crete a new superuser instance via the management command, I get this error:
TypeError: create_superuser() takes exactly 4 arguments (3 given)
My "create_superuser" manager method looks like this:
def create_superuser(self, email, date_of_birth, password):
u = self.create_user(email, date_of_birth, password)
u.superuser = True
u.save()
return u
The management command isn't asking for the dob... Is this a known shortcoming of the new custom User model, or am I not doing something right?