fix statute paragraph creation for delegates

This commit is contained in:
Maximilian Krambach 2019-02-15 11:54:20 +01:00
parent a5eee7c99c
commit 3262dd0da8

View File

@ -157,7 +157,13 @@ class MotionViewSet(ModelViewSet):
# Remove fields that the user is not allowed to send.
# The list() is required because we want to use del inside the loop.
keys = list(request.data.keys())
whitelist = ["title", "text", "reason", "category_id"]
whitelist = [
"title",
"text",
"reason",
"category_id",
"statute_paragraph_id",
]
if parent_motion is not None:
# For creating amendments.
whitelist.extend(