Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
8de623a2
Commit
8de623a2
authored
Aug 18, 2017
by
Gabriel Detraz
Committed by
root
Aug 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iTypoS
parent
466ea1a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
users/views.py
users/views.py
+1
-1
No files found.
users/views.py
View file @
8de623a2
...
...
@@ -513,7 +513,7 @@ def mass_archive(request):
to_archive_list
=
[]
if
to_archive_date
.
is_valid
():
date
=
to_archive_date
.
cleaned_data
[
'date'
]
to_archive_list
=
[
user
for
user
in
User
.
objects
.
exclude
(
state
=
User
.
STATE_ARCHIVE
)
if
not
user
.
end_access
or
user
.
end_access
<
date
]
to_archive_list
=
[
user
for
user
in
User
.
objects
.
exclude
(
state
=
User
.
STATE_ARCHIVE
)
if
not
user
.
end_access
()
or
user
.
end_access
()
<
date
]
if
"valider"
in
request
.
POST
:
for
user
in
to_archive_list
:
with
transaction
.
atomic
(),
reversion
.
create_revision
():
...
...
Write
Preview
Markdown
is supported
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