Fixed zoom and scroll, fixed #2547.
This commit is contained in:
parent
db38e5e075
commit
4d80914b8a
@ -19,7 +19,7 @@ from django.utils.translation import ugettext as _
|
|||||||
|
|
||||||
from .. import __version__ as version
|
from .. import __version__ as version
|
||||||
from ..utils import views as utils_views
|
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.collection import Collection, CollectionElement
|
||||||
from ..utils.plugins import (
|
from ..utils.plugins import (
|
||||||
get_plugin_description,
|
get_plugin_description,
|
||||||
@ -436,7 +436,9 @@ class ProjectorViewSet(ModelViewSet):
|
|||||||
# request.data['direction'] == 'reset'
|
# request.data['direction'] == 'reset'
|
||||||
projector_instance.scroll = 0
|
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(
|
message = '{action} {direction} was successful.'.format(
|
||||||
action=request.data['action'].capitalize(),
|
action=request.data['action'].capitalize(),
|
||||||
direction=request.data['direction'])
|
direction=request.data['direction'])
|
||||||
|
Loading…
Reference in New Issue
Block a user