Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
ae95462c
Commit
ae95462c
authored
Jun 08, 2017
by
Flavio TARSETTI
Browse files
[accounts/utils - management] added daily cron actions to clean invalid users - no input default
parent
c4f3c7d2
Pipeline
#10477
passed with stage
in 39 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/web/accounts/management/commands/clean_invalid_users.py
View file @
ae95462c
...
...
@@ -47,7 +47,7 @@ class Command(BaseCommand):
help
=
'Cleanup outdated invalid users'
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
'--noinput'
,
action
=
'store_false'
,
dest
=
'interactive'
,
default
=
Tru
e
,
parser
.
add_argument
(
'--noinput'
,
action
=
'store_false'
,
dest
=
'interactive'
,
default
=
Fals
e
,
help
=
(
'Tells Django to NOT prompt the user for input of any kind.'
))
...
...
beat/web/utils/management/commands/daily_cron_actions.py
View file @
ae95462c
...
...
@@ -52,3 +52,6 @@ class Command(BaseCommand):
# Send report cleanup warnings and cleanup reports
call_command
(
'send_report_cleanup_warning_and_cleanup'
)
# Clean and remove invalid users
call_command
(
'clean_invalid_users'
)
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