diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index a67c77f..0ec7aee 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -248,6 +248,7 @@ class ImportForm(forms.Form): # convert dates to iso 8601 for col in df.select_dtypes(include='datetime').columns: df[col] = df[col].dt.strftime("%Y-%m-%d") + df.fillna('', inplace=True) # convert numbers to strings if this is indicate in schema for col in props.keys(): diff --git a/idhub/templates/credentials/membership-card.json b/idhub/templates/credentials/membership-card.json index e9de47a..0ded5f5 100644 --- a/idhub/templates/credentials/membership-card.json +++ b/idhub/templates/credentials/membership-card.json @@ -57,7 +57,7 @@ "identityNumber": "{{ identityNumber }}", "organisation": "{{ organisation }}", "membershipType": "{{ membershipType }}", - "membershipId": "{{ vc_id }}", + "membershipId": "{{ membershipId }}", "affiliatedSince": "{{ affiliatedSince }}", "affiliatedUntil": "{{ affiliatedUntil }}" }, diff --git a/idhub/templates/idhub/admin/issue_credentials.html b/idhub/templates/idhub/admin/issue_credentials.html index f046683..75d9ff7 100644 --- a/idhub/templates/idhub/admin/issue_credentials.html +++ b/idhub/templates/idhub/admin/issue_credentials.html @@ -10,11 +10,11 @@