commit
6d62516499
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user