Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1006 from yverdon/feature/fix_agenda_event_details
Browse files Browse the repository at this point in the history
remove filters when accessing to one specific event
  • Loading branch information
AlexandreJunod authored May 29, 2024
2 parents 3d2bceb + f2fcbe4 commit 077ba08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions geocity/apps/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ def get_queryset(self):
# Filter domain (administrative_entity) to permit sites to filter on their own domain (e.g.: sports, culture)
domains = None

# Dont filter with other conditions, when trying to access to event details
# Still possible to put after a domain_filter later, if we return it in agenda-embed
if "pk" in self.kwargs:
return submissions

if "domain_filter" in query_params:
domain_filter = query_params.getlist("domain_filter")
entities = AdministrativeEntity.objects.filter(id__in=domain_filter)
Expand Down

0 comments on commit 077ba08

Please sign in to comment.