Commit 50bb5a1f authored by Gijs Hendriksen's avatar Gijs Hendriksen

Fix typo in push notificatin devices viewset

parent 00643ee5
......@@ -31,7 +31,7 @@ class DeviceViewSet(ModelViewSet):
pass
data = serializer.validated_data
if 'receive_category' in data and len(data['receive_category']) > 0:
categories = data['receive_catogory'] + ['general']
categories = data['receive_category'] + ['general']
serializer.save(user=self.request.user, language=language,
receive_category=categories)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment