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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to