Skip to content

Commit

Permalink
API: Avoid assigning object to availabilities
Browse files Browse the repository at this point in the history
The actionlog mixin was expecting an object for the availabilities
endpoint, but as the endpoint affects many objects at once, assigning a
single object isn't as important.

Fixes BACKEND-CHM
  • Loading branch information
tienne-B committed Oct 30, 2024
1 parent 399c6c9 commit 14234e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tabbycat/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,7 @@ def get_queryset(self):
class AvailabilitiesViewSet(RoundAPIMixin, AdministratorAPIMixin, APIView):
serializer_class = serializers.AvailabilitiesSerializer # Isn't actually used
action_log_type_updated = ActionLogEntry.ActionType.AVAIL_SAVE
action_log_content_object_attr = None

list_permission = Permission.VIEW_ROUNDAVAILABILITIES
create_permission = Permission.EDIT_ROUNDAVAILABILITIES
Expand Down

0 comments on commit 14234e3

Please sign in to comment.