Commit e2d2daa2 authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Merge branch 'feature/force-general-category' into 'master'

Force general category

See merge request !833
parents b5a52413 610bc213
......@@ -31,7 +31,9 @@ class DeviceViewSet(ModelViewSet):
data = serializer.validated_data
if 'receive_category' in data and len(data['receive_category']) > 0:, language=language)
categories = data['receive_catogory'] + ['general'], language=language,
categories = [ for c in Category.objects.all()], language=language,
Supports Markdown
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