diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-01-01 18:53:30 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2018-04-08 12:51:19 +0200 |
commit | 98dab30f7fe9c24d889db5b3900d706c9df3c428 (patch) | |
tree | 4a2b57295800bebdc5b556cf4d933262bb27bbd1 | |
parent | 77753b0308bd1d8984041468fd8de7bad78e47e0 (diff) | |
download | archweb-98dab30f7fe9c24d889db5b3900d706c9df3c428.tar.gz archweb-98dab30f7fe9c24d889db5b3900d706c9df3c428.zip |
populate_signoffs: NoArgsCommand removed in Django 1.10
Update the code to use BaseCommand instead of the removed NoArgsCommand.
-rw-r--r-- | packages/management/commands/populate_signoffs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/management/commands/populate_signoffs.py b/packages/management/commands/populate_signoffs.py index 8a025f4e..217eff97 100644 --- a/packages/management/commands/populate_signoffs.py +++ b/packages/management/commands/populate_signoffs.py @@ -15,7 +15,7 @@ import sys from xml.etree.ElementTree import XML from django.conf import settings -from django.core.management.base import NoArgsCommand +from django.core.management.base import BaseCommand from ...models import SignoffSpecification from ...utils import get_signoff_groups @@ -28,11 +28,11 @@ logging.basicConfig( stream=sys.stderr) logger = logging.getLogger() -class Command(NoArgsCommand): +class Command(BaseCommand): help = """Pull the latest commit message from SVN for a given package that is signoff-eligible and does not have an existing comment attached""" - def handle_noargs(self, **options): + def handle(self, **options): v = int(options.get('verbosity', None)) if v == 0: logger.level = logging.ERROR |