labelbase/importer/forms.py
2023-07-07 14:07:26 +02:00

15 lines
392 B
Python

from django import forms
IMPORTER_CHOICES = (
("BIP-0329", "BIP-0329"),
("csv-bluewallet", "BlueWallet .csv"),
("csv-bitbox", "BitBox .csv"),
)
class UploadFileForm(forms.Form):
labelbase_id = forms.IntegerField(widget=forms.HiddenInput())
import_type = forms.ChoiceField(
choices=IMPORTER_CHOICES, widget=forms.HiddenInput()
)
file = forms.FileField()