mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-16 13:01:02 +02:00
15 lines
395 B
Python
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
|
|
)
|