Skip to content

Commit

Permalink
Update people.py
Browse files Browse the repository at this point in the history
  • Loading branch information
strafrecht-admin authored Aug 24, 2023
1 parent 539cf82 commit b551317
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pages/models/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ def get_context(self, request):
context['head'] = staff.filter(role='chairholder')
context['office'] = staff.filter(role='office-management')
context['academic'] = staff.filter(
Q(role='academic-staff-male') | Q(role='academic-staff-female') | Q(role='academic-assistant') | Q(role='jurcoach-law-team-academic')
)
Q(role='academic-staff-male') | Q(role='academic-staff-female') | Q(role='academic-assistant') | Q(role='jurcoach-law-team-academic'))
context['student'] = staff.filter(
Q(role='student-assistant') | Q(role='jurcoach-law-team-student')
)
Q(role='student-assistant') | Q(role='jurcoach-law-team-student'))
context['webmaster'] = staff.filter(role='webmaster')
return context

@route('(?P<person>\d+)/$', name="person")
Expand Down

0 comments on commit b551317

Please sign in to comment.