From ddef7de35e190685c6764684982001608df0ee9b Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Wed, 17 Jul 2019 13:08:00 -0400 Subject: [PATCH] Switch to Python 3 superclass method calling --- app/server/management/commands/create_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server/management/commands/create_admin.py b/app/server/management/commands/create_admin.py index a6b8c413..fb633dfe 100644 --- a/app/server/management/commands/create_admin.py +++ b/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')