fix issue credential next to pass didkit
This commit is contained in:
parent
14167090b3
commit
3289b99b6e
|
@ -631,7 +631,6 @@ class VerificableCredential(models.Model):
|
|||
if self.status == self.Status.ISSUED:
|
||||
return
|
||||
|
||||
self.status = self.Status.ISSUED
|
||||
self.subject_did = did
|
||||
self.issued_on = datetime.datetime.now().astimezone(pytz.utc)
|
||||
issuer_pass = cache.get("KEY_DIDS")
|
||||
|
@ -651,6 +650,8 @@ class VerificableCredential(models.Model):
|
|||
else:
|
||||
self.data = self.user.encrypt_data(data, password)
|
||||
|
||||
self.status = self.Status.ISSUED
|
||||
|
||||
def get_context(self, domain):
|
||||
d = json.loads(self.csv_data)
|
||||
issuance_date = ''
|
||||
|
|
Loading…
Reference in New Issue