mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-14 12:43:22 +02:00
15 lines
392 B
Python
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()
|