Commit 374e1969 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Fix selecting deactivated users

Don't rely on field deactivated_at to find deactivated users.
parent a33f65fd
......@@ -6,6 +6,18 @@ Unified Changelog file for Synnefo versions >= 0.13
Since v0.13 most of the Synnefo components have been merged into a single
repository and have aligned versions.
.. _Changelog-0.18.1:
v0.18.1
=======
Astakos
-------
* Fix a bug in `user-check` management command, where the list of deactivated
users was computed wrongly.
.. _Changelog-0.18:
v0.18
......
......@@ -5,6 +5,18 @@ Unified NEWS file for Synnefo versions >= 0.13
Since v0.13 all Synnefo components have been merged into a single repository.
.. _NEWS-0.18.1:
v0.18.1
=======
Release: UNRELEASED
The Synnefo 0.18.1 release resolves the following issue.
* Fixed a bug in `user-check` management command, where the list of
deactivated users was computed wrongly.
.. _NEWS-0.18:
v0.18
......
......@@ -86,8 +86,8 @@ class Command(SynnefoCommand):
@transaction.commit_on_success
def suspend_projects(self, userid, fix):
count = 0
deactivated = AstakosUser.objects.filter(
is_active=False, deactivated_at__isnull=False).select_for_update()
deactivated = AstakosUser.objects.accepted().filter(
is_active=False).select_for_update()
if userid is None:
users = deactivated
else:
......
Markdown is supported
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