fix statute paragraph creation for delegates
This commit is contained in:
parent
a5eee7c99c
commit
3262dd0da8
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user