add credential_as_issuer in models

This commit is contained in:
Cayo Puigdefabregas 2024-06-20 10:00:07 +02:00
parent 65b4d17d82
commit a975d831f9
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.2.5 on 2024-06-20 07:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('idhub', '0006_did_ether_address_did_ether_privkey'),
]
operations = [
migrations.AddField(
model_name='did',
name='credential_as_issuer',
field=models.TextField(null=True),
),
]

View File

@ -454,6 +454,7 @@ class DID(models.Model):
) )
# JSON-serialized DID document # JSON-serialized DID document
didweb_document = models.TextField() didweb_document = models.TextField()
credential_as_issuer = models.TextField(null=True)
@property @property
def is_organization_did(self): def is_organization_did(self):