Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
98dab30f
Commit
98dab30f
authored
Jan 01, 2018
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/management/commands/populate_signoffs.py
View file @
98dab30f
...
...
@@ -15,7 +15,7 @@
from
xml.etree.ElementTree
import
XML
from
django.conf
import
settings
from
django.core.management.base
import
NoArgs
Command
from
django.core.management.base
import
Base
Command
from
...models
import
SignoffSpecification
from
...utils
import
get_signoff_groups
...
...
@@ -28,11 +28,11 @@
stream
=
sys
.
stderr
)
logger
=
logging
.
getLogger
()
class
Command
(
NoArgs
Command
):
class
Command
(
Base
Command
):
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment