Merge pull request #4271 from MaximilianKrambach/4065

fix #4065
This commit is contained in:
Emanuel Schütze 2019-02-07 13:08:33 +01:00 committed by GitHub
commit 7956d9f7a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
from openslides.utils.autoupdate import inform_changed_data
from openslides.utils.rest_api import CharField, IntegerField, ModelSerializer
from openslides.utils.validate import validate_html
@ -54,6 +55,7 @@ class TopicSerializer(ModelSerializer):
topic.agenda_item_update_information["comment"] = agenda_comment
topic.agenda_item_update_information["duration"] = agenda_duration
topic.agenda_item_update_information["weight"] = agenda_weight
topic.save()
topic.save(skip_autoupdate=True)
topic.attachments.add(*attachments)
inform_changed_data(topic)
return topic