Opened 11 years ago
Closed 11 years ago
#20764 closed Uncategorized (invalid)
changing .is_superuser field in models
Reported by: | 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 |
Description
By default from project directory by running manage.py 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.
Note:
See TracTickets
for help on using tickets.
https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels