add method un did model
This commit is contained in:
parent
0d61d8c7de
commit
29e5e66c5f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue