From 4d80914b8aa63f9e8f76cff37bbd155afda82207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Tue, 8 Nov 2016 21:29:26 +0100 Subject: [PATCH] Fixed zoom and scroll, fixed #2547. --- openslides/core/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openslides/core/views.py b/openslides/core/views.py index cdb95d40f..f1721ad40 100644 --- a/openslides/core/views.py +++ b/openslides/core/views.py @@ -19,7 +19,7 @@ from django.utils.translation import ugettext as _ from .. import __version__ as version from ..utils import views as utils_views -from ..utils.autoupdate import inform_deleted_data +from ..utils.autoupdate import inform_changed_data, inform_deleted_data from ..utils.collection import Collection, CollectionElement from ..utils.plugins import ( get_plugin_description, @@ -436,7 +436,9 @@ class ProjectorViewSet(ModelViewSet): # request.data['direction'] == 'reset' projector_instance.scroll = 0 - projector_instance.save() + projector_instance.save(skip_autoupdate=True) + projector_instance.refresh_from_db() + inform_changed_data(projector_instance) message = '{action} {direction} was successful.'.format( action=request.data['action'].capitalize(), direction=request.data['direction'])