Skip to content

Commit ddef7de

Browse files
committed
Switch to Python 3 superclass method calling
1 parent 79932ed commit ddef7de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/server/management/commands/create_admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Command(createsuperuser.Command):
66
help = 'Non-interactively create an admin user'
77

88
def add_arguments(self, parser):
9-
super(Command, self).add_arguments(parser)
9+
super().add_arguments(parser)
1010
parser.add_argument('--password', default=None,
1111
help='The password for the admin.')
1212

@@ -17,7 +17,7 @@ def handle(self, *args, **options):
1717
if password and not username:
1818
raise CommandError('--username is required if specifying --password')
1919

20-
super(Command, self).handle(*args, **options)
20+
super().handle(*args, **options)
2121

2222
if password:
2323
database = options.get('database')

0 commit comments

Comments
 (0)