EcoAccount detail

* adds detail view for eco account
* adds withdraw detail view to eco acount detail
* generalizes compensation/includes templates to be reusable for eco-accounts
* moves is_shared_with() check to class BaseObject
* adds/updates translations
This commit is contained in:
mipel
2021-08-09 14:39:36 +02:00
parent 93c02a72ca
commit abdc574ea2
20 changed files with 364 additions and 127 deletions
-13
View File
@@ -193,19 +193,6 @@ class Intervention(BaseObject):
self.identifier = new_id
super().save(*args, **kwargs)
def is_shared_with(self, user: User):
""" Access check
Checks whether a given user has access to this intervention
Args:
user ():
Returns:
"""
return self.users.filter(username=user.username).exists()
def check_validity(self) -> (bool, dict):
""" Validity check