Skip to content
Snippets Groups Projects

Fix API detail views

Merged Benjamin Hättasch requested to merge fix-api into main
  1. Apr 29, 2021
    • Benjamin Hättasch's avatar
      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
Loading