-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add management commands #597
base: master
Are you sure you want to change the base?
Conversation
furlongm
commented
Jun 21, 2024
- Add management commands
- Add set_site command
- Fix option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some food for thought. View full project report here.
help = 'Crate a superuser, and allow password to be provided' | ||
|
||
def add_arguments(self, parser): | ||
super(Command, self).add_arguments(parser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super(Command, self).add_arguments(parser) | |
super().add_arguments(parser) |
It's unnecessary to use arguments when calling super for the parent class. Read more.
raise CommandError( | ||
'--username is required if specifying --password') | ||
|
||
super(Command, self).handle(*args, **options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super(Command, self).handle(*args, **options) | |
super().handle(*args, **options) |
Again, These super arguments are unnecessary.