Skip to content
Snippets Groups Projects
  • Benjamin Hättasch's avatar
    fd0b8982
    Fix API detail views · fd0b8982
    Benjamin Hättasch authored and Nadja Geisler's avatar Nadja Geisler committed
    Previously, the event from the url was not parsed correctly for API endpoints for individual AKs, AKRooms, etc. This led to self.event being None and the queryset being empty, hence the AK, AKRoom etc. could not be found by the API. This fix makes sure, the event is loaded as part of the API initialization for all endpoints and methods.
    fd0b8982
    History
    Fix API detail views
    Benjamin Hättasch authored and Nadja Geisler's avatar Nadja Geisler committed
    Previously, the event from the url was not parsed correctly for API endpoints for individual AKs, AKRooms, etc. This led to self.event being None and the queryset being empty, hence the AK, AKRoom etc. could not be found by the API. This fix makes sure, the event is loaded as part of the API initialization for all endpoints and methods.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.