Fix typo in push notification devices viewset
Previous behaviour
Website crashes when updating push notifications categories.
Steps to reproduce:
- Send a POST request containing
receive_category
tohttps://thalia.nu/api/v1/devices/
. - Receive 500 error.
New behaviour
Website saves new preferences for push notifications categories.
Steps to validate that it works:
- Send a POST request containing
receive_category
tohttps://thalia.nu/api/v1/devices/
. - Don't receive 500 error.
Edited by Gijs Hendriksen