add method un did model

This commit is contained in:
Cayo Puigdefabregas 2023-10-26 18:09:07 +02:00
parent 0d61d8c7de
commit 29e5e66c5f

View file

@ -23,6 +23,12 @@ class DID(models.Model):
)
# kind = "KEY|WEB"
@property
def is_organization_did(self):
if not self.user:
return True
return False
class Schemas(models.Model):
file_schema = models.CharField(max_length=250)