Merge pull request #2602 from normanjaeckel/FixFQueryProblem

Fixed zoom and scroll, fixed #2547.
This commit is contained in:
Emanuel Schütze 2016-11-08 21:50:15 +01:00 committed by GitHub
commit 3b2b267e0f

View File

@ -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'])