Commit 98dab30f authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

populate_signoffs: NoArgsCommand removed in Django 1.10

Update the code to use BaseCommand instead of the removed NoArgsCommand.
parent 77753b03
......@@ -15,7 +15,7 @@
from xml.etree.ElementTree import XML
from django.conf import settings
from import NoArgsCommand
from import BaseCommand
from ...models import SignoffSpecification
from ...utils import get_signoff_groups
......@@ -28,11 +28,11 @@
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment