From f3a971a6564dd1f6e6fdd82f3b60c65c856f1081 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 2 Nov 2023 10:59:15 +0100 Subject: [PATCH] fix schema form import --- idhub/admin/forms.py | 4 ++++ idhub/admin/views.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index cebefd8..22b4954 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -3,3 +3,7 @@ from django import forms class ImportForm(forms.Form): file_import = forms.FileField() + + +class SchemaForm(forms.Form): + file_template = forms.FileField() diff --git a/idhub/admin/views.py b/idhub/admin/views.py index 0b7cc97..9e5b4e7 100644 --- a/idhub/admin/views.py +++ b/idhub/admin/views.py @@ -20,7 +20,7 @@ from apiregiter import iota from idhub_auth.models import User from idhub.mixins import AdminView from idhub.email.views import NotifyActivateUserByEmail -from idhub.admin.forms import ImportForm +from idhub.admin.forms import ImportForm, SchemaForm from idhub.models import ( DID, File_datas,