diff --git a/idhub/models.py b/idhub/models.py index 2570d34..52f3010 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -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)