Browse Source

Switch to Python 3 superclass method calling

pull/293/head
Clemens Wolff 6 years ago
parent
commit
ddef7de35e
1 changed files with 2 additions and 2 deletions
  1. 4
      app/server/management/commands/create_admin.py

4
app/server/management/commands/create_admin.py

@ -6,7 +6,7 @@ class Command(createsuperuser.Command):
help = 'Non-interactively create an admin user'
def add_arguments(self, parser):
super(Command, self).add_arguments(parser)
super().add_arguments(parser)
parser.add_argument('--password', default=None,
help='The password for the admin.')
@ -17,7 +17,7 @@ class Command(createsuperuser.Command):
if password and not username:
raise CommandError('--username is required if specifying --password')
super(Command, self).handle(*args, **options)
super().handle(*args, **options)
if password:
database = options.get('database')

Loading…
Cancel
Save