Skip to content

Commit

Permalink
only display assignments for current session in assignment page
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Nov 25, 2024
1 parent 6983b94 commit 6f81580
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crowdsourcer/views/volunteers.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ def get_context_data(self, **kwargs):
formset = VolunteerAssignmentFormset(
instance=self.user,
form_kwargs={"session": self.request.current_session},
queryset=Assigned.objects.filter(
user=self.user, marking_session=self.request.current_session
),
**self.get_form_kwargs()
)

Expand Down

0 comments on commit 6f81580

Please sign in to comment.