#19113 closed Cleanup/optimization (invalid)

usermanager in new user auth produces error

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


def create_superuser(self, username, date_of_birth, password):

Creates and saves a superuser with the given email, date of
birth and password.
user = self.create_user(username,


user.is_admin = True
return user

The above code is example but in the model it specifies only email and not username, and so produces a type error - TypeError: create_superuser() got an unexpected keyword argument 'username'

This is for version 1.5 and not 1.4 as it says below.

Attachments (0)

Change History (1)

comment:1 Changed 18 months ago by francis idada <francis.idada@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.