fix schema form import

This commit is contained in:
Cayo Puigdefabregas 2023-11-02 10:59:15 +01:00
parent 734d7aab23
commit f3a971a656
2 changed files with 5 additions and 1 deletions

View File

@ -3,3 +3,7 @@ from django import forms
class ImportForm(forms.Form): class ImportForm(forms.Form):
file_import = forms.FileField() file_import = forms.FileField()
class SchemaForm(forms.Form):
file_template = forms.FileField()

View File

@ -20,7 +20,7 @@ from apiregiter import iota
from idhub_auth.models import User from idhub_auth.models import User
from idhub.mixins import AdminView from idhub.mixins import AdminView
from idhub.email.views import NotifyActivateUserByEmail from idhub.email.views import NotifyActivateUserByEmail
from idhub.admin.forms import ImportForm from idhub.admin.forms import ImportForm, SchemaForm
from idhub.models import ( from idhub.models import (
DID, DID,
File_datas, File_datas,