Commit 7f640ddc authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Omit terminated projects when suspending members

parent 7e32dd64
......@@ -1239,7 +1239,8 @@ def _get_base_projects(user_ids):
def _get_memberships(user_ids):
ms = ProjectMembership.objects.actually_accepted().\
filter(person__in=user_ids)
filter(person__in=user_ids,
project__state__in=[Project.NORMAL, Project.SUSPENDED])
return _partition_by(lambda m: m.person_id, ms)
......
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