Skip to content

Fix typo in push notification devices viewset

Gijs Hendriksen requested to merge fix/typo-in-push-device-viewset into master

Previous behaviour

Website crashes when updating push notifications categories.

Steps to reproduce:

  1. Send a POST request containing receive_category to https://thalia.nu/api/v1/devices/.
  2. Receive 500 error.

New behaviour

Website saves new preferences for push notifications categories.

Steps to validate that it works:

  1. Send a POST request containing receive_category to https://thalia.nu/api/v1/devices/.
  2. Don't receive 500 error.
Edited by Gijs Hendriksen

Merge request reports