Merge pull request #4348 from MaximilianKrambach/fixStatute

fix statute paragraph creation for delegates
This commit is contained in:
Maximilian Krambach 2019-02-15 12:38:47 +01:00 committed by GitHub
commit edd22eeef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,13 @@ class MotionViewSet(ModelViewSet):
# Remove fields that the user is not allowed to send. # Remove fields that the user is not allowed to send.
# The list() is required because we want to use del inside the loop. # The list() is required because we want to use del inside the loop.
keys = list(request.data.keys()) 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: if parent_motion is not None:
# For creating amendments. # For creating amendments.
whitelist.extend( whitelist.extend(