add method un did model

This commit is contained in:
Cayo Puigdefabregas 2023-10-26 18:09:07 +02:00
parent 0d61d8c7de
commit 29e5e66c5f
1 changed files with 6 additions and 0 deletions

View File

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