#20764 closed Uncategorized (invalid)

changing .is_superuser field in models

Reported by: alwinraj230@… Owned by: nobody
Component: Python 2 Version: 1.3
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


By default from project directory by running createsuperuser comment i am able to create a superuser,but the .is_superuser flag is the default django one.I don't what to use that because i am using that flag throughout the application.Instead ,I added a field in my userprofile models,the field is .is_primary_user.Is any way is their to control that,so that if i run createsuperuser comment,it should update the .is_primary_user field by "1" in userprofile model.

Attachments (0)

Change History (1)

comment:1 Changed 12 months ago by timo

  • 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.