# 86 Viewport jump EcoAccount/EMA

* adds direct jump of viewport on related-data action (create/delete)
This commit is contained in:
2022-02-02 11:26:02 +01:00
parent 0248075479
commit 1eecc5fa48
34 changed files with 247 additions and 167 deletions

View File

@@ -8,6 +8,7 @@ Created on: 15.11.21
import shutil
from django.contrib import messages
from django.urls import reverse
from django.utils import timezone
from user.models import User
@@ -299,6 +300,14 @@ class Intervention(BaseObject, ShareableObjectMixin, RecordableObjectMixin, Chec
and is_free_of_revocations
return is_ready
def get_share_link(self):
""" Returns the share url for the object
Returns:
"""
return reverse("intervention:share", args=(self.id, self.access_token))
class InterventionDocument(AbstractDocument):
"""