Refactoring to konova

This commit is contained in:
mipel
2021-07-01 14:38:57 +02:00
parent a5e8bcfa8c
commit 4084373e2b
60 changed files with 103 additions and 17901 deletions
+1 -3
View File
@@ -1,7 +1,6 @@
from django.db import models
from konova.models import BaseResource
from organisation.enums import OrganisationTypeEnum
class Organisation(BaseResource):
@@ -12,7 +11,6 @@ class Organisation(BaseResource):
phone = models.CharField(max_length=500, null=True, blank=True)
email = models.EmailField(max_length=500, null=True, blank=True)
facsimile = models.CharField(max_length=500, null=True, blank=True)
type = models.CharField(max_length=255, choices=OrganisationTypeEnum.as_choices(drop_empty_choice=True), null=True, blank=True)
def __str__(self):
return self.name
return self.name