Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
c5673057
Verified
Commit
c5673057
authored
Jul 11, 2018
by
Gijs Hendriksen
Committed by
Sébastiaan Versteeg
Jul 12, 2018
Browse files
Fix typo in push notificatin devices viewset
parent
3f5fc911
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/pushnotifications/api/viewsets.py
View file @
c5673057
...
...
@@ -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_cat
o
gory'
]
+
[
'general'
]
categories
=
data
[
'receive_cat
e
gory'
]
+
[
'general'
]
serializer
.
save
(
user
=
self
.
request
.
user
,
language
=
language
,
receive_category
=
categories
)
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment