Skip to content

Commit

Permalink
fix: fixes issue with filtering for klassen and date
Browse files Browse the repository at this point in the history
  • Loading branch information
sennierer committed May 27, 2024
1 parent 23ed70e commit 4cc4280
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paas_theme/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ def get_memberships(
q_obj &= models.Q(relation_type_id__in=ids)
elif isinstance(memberships[0], int):
q_obj &= models.Q(relation_type_id__in=memberships)
if institutions == '':
institutions = None
if institutions is not None:
if institutions == "phil.-hist. Klasse":
q_obj &= models.Q(related_institution_id=2)
Expand Down

0 comments on commit 4cc4280

Please sign in to comment.