Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
🐛
Default comment is an empty string, not None
· 1b7014f3
ynerant
authored
Aug 06, 2020
1b7014f3
Hide whitespace changes
Inline
Side-by-side
management/commands/refresh_activities.py
View file @
1b7014f3
...
...
@@ -168,7 +168,7 @@ class Command(BaseCommand):
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
"
--human
"
,
"
-H
"
,
action
=
"
store_true
"
,
help
=
"
Save human readable page
"
)
parser
.
add_argument
(
"
--raw
"
,
"
-r
"
,
action
=
"
store_true
"
,
help
=
"
Save raw page, for the calendar
"
)
parser
.
add_argument
(
"
--comment
"
,
"
-c
"
,
action
=
"
store
"
,
type
=
str
,
help
=
"
Comment of the modification
"
)
parser
.
add_argument
(
"
--comment
"
,
"
-c
"
,
action
=
"
store
"
,
type
=
str
,
default
=
""
,
help
=
"
Comment of the modification
"
)
parser
.
add_argument
(
"
--debug
"
,
"
-d
"
,
action
=
"
store_true
"
,
help
=
"
Don
'
t commit to the wiki, render in stdout
"
)
def
handle
(
self
,
*
args
,
**
options
):
...
...