Skip to content

Commit

Permalink
Merge pull request #365 from lebonez/patch-1
Browse files Browse the repository at this point in the history
allocation list view if project is New or Active
  • Loading branch information
aebruno authored Mar 9, 2022
2 parents a17a64a + 4fd3af1 commit 5f24444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coldfront/core/allocation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def get_queryset(self):
'project', 'project__pi', 'status',).all().order_by(order_by)
else:
allocations = Allocation.objects.prefetch_related('project', 'project__pi', 'status',).filter(
Q(project__status__name='Active') &
Q(project__status__name__in=['New', 'Active', ]) &
Q(project__projectuser__user=self.request.user) &
Q(project__projectuser__status__name='Active') &
Q(allocationuser__user=self.request.user) &
Expand Down

0 comments on commit 5f24444

Please sign in to comment.