Permission rethinking

* No detailed permissions due to django constraints on model-based permissions
* instead: logic controlled permission by group membership
* adds translations
This commit is contained in:
mipel
2021-07-02 09:30:50 +02:00
parent a81351f468
commit b4d1aea37f
6 changed files with 211 additions and 259 deletions

View File

@@ -74,6 +74,7 @@ class Compensation(BaseObject):
geometry = models.ForeignKey(Geometry, null=True, blank=True, on_delete=models.SET_NULL)
documents = models.ManyToManyField("konova.Document", blank=True)
@staticmethod
def _generate_new_identifier() -> str:
""" Generates a new identifier for the intervention object