Skip to content

Commit

Permalink
expand project/allocation list on homepage to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Dec 1, 2023
1 parent 5df7f93 commit 61990b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coldfront/core/portal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def home(request):
& Q(projectuser__status__name='Active')
)
)
).distinct().order_by('-created')[:5]
).distinct().order_by('-created')

allocation_list = Allocation.objects.filter(
Q(status__name__in=['Active', 'New', 'Renewal Requested', ]) &
Expand All @@ -44,7 +44,7 @@ def home(request):
(Q(project__projectuser__role__name='Manager') |
Q(allocationuser__user=request.user) &
Q(allocationuser__status__name='Active'))
).distinct().order_by('-created')[:5]
).distinct().order_by('-created')

managed_allocations = Allocation.objects.filter(
Q(status__name__in=['Active', 'New', 'Renewal Requested', ])
Expand Down

0 comments on commit 61990b0

Please sign in to comment.