Compensation users refactoring

* moves accessibility of compensations completely into related intervention.users set
  * this way the visibility for a compensation can not differ from the one of the 'parent' intervention
This commit is contained in:
mipel
2021-07-29 16:10:56 +02:00
parent 4e9f0f3c88
commit 9f3b858f9f
2 changed files with 21 additions and 3 deletions
+3 -3
View File
@@ -100,9 +100,6 @@ class Compensation(BaseObject):
related_name='compensations'
)
# Users having access on this object
users = models.ManyToManyField(User)
@staticmethod
def _generate_new_identifier() -> str:
""" Generates a new identifier for the intervention object
@@ -153,3 +150,6 @@ class EcoAccount(Compensation):
with some kind of currency. From this account one is able to 'withdraw' currency for current projects.
"""
handler = models.CharField(max_length=500, null=True, blank=True, help_text="Who is responsible for handling the actions")
# Users having access on this object
users = models.ManyToManyField(User)