This commit is contained in:
Oskar Hahn 2016-03-20 20:42:07 +01:00
parent bf8e4fa585
commit 46ba039cd5

View File

@ -7,6 +7,7 @@ from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy
from openslides.core.config import ConfigVariable
from openslides.utils.autoupdate import inform_changed_data
from .models import Item
@ -98,6 +99,7 @@ def listen_to_related_object_post_save(sender, instance, created, **kwargs):
"""
if created and hasattr(instance, 'get_agenda_title'):
Item.objects.create(content_object=instance)
inform_changed_data(False, instance)
def listen_to_related_object_post_delete(sender, instance, **kwargs):