labelbase/django/importer/forms.py
2024-07-30 22:43:13 +02:00

15 lines
395 B
Python

from django import forms
from .models import IMPORTER_CHOICES
class UploadFileForm(forms.Form):
labelbase_id = forms.IntegerField(widget=forms.HiddenInput())
import_type = forms.ChoiceField(
choices=IMPORTER_CHOICES
)
file = forms.FileField()
passphrase = forms.CharField(
widget=forms.PasswordInput(),
required=False,
max_length=100
)