Add some restrictions on deletion

This commit is contained in:
Ludovic Stephan 2019-05-24 16:16:20 +02:00
parent 08ac0ac890
commit 52521e89a6
2 changed files with 12 additions and 2 deletions

View file

@ -152,7 +152,7 @@ class Account(models.Model):
@property
def readable(self):
return self.trigramme != "GNR"
return self.trigramme not in [KFET_DELETED_TRIGRAMME, KFET_GENERIC_TRIGRAMME]
@property
def is_team(self):