Skip to content

Commit

Permalink
allow_caterers_to_view_period_4,5
Browse files Browse the repository at this point in the history
mittal-ishaan committed May 10, 2024
1 parent dc21e7f commit 3d3d84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/admin.py
Original file line number Diff line number Diff line change
@@ -902,7 +902,7 @@ def get_queryset(self, request):
semester = Semester.objects.get(name="Spring 2024")
if(request.user.groups.filter(name="College Administration")):
return qs
return qs.filter(period__semester=semester).filter(period__Sno__in=[2,3]).filter(caterer__name=request.user.username)
return qs.filter(period__semester=semester).filter(period__Sno__in=[2,3,4,5]).filter(caterer__name=request.user.username)


@admin.display(description="email")

0 comments on commit 3d3d84f

Please sign in to comment.