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
8fbebbd6
Commit
8fbebbd6
authored
Jul 11, 2018
by
Sébastiaan Versteeg
Browse files
Merge branch 'fix/typo-in-push-device-viewset' into 'master'
Fix typo in push notification devices viewset See merge request
!862
parents
5ca81fde
50bb5a1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/pushnotifications/api/viewsets.py
View file @
8fbebbd6
...
...
@@ -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