devicehub-django/snapshot/forms.py
Cayo Puigdefabregas 12baa6f538 upload form
2024-07-13 15:27:36 +02:00

9 lines
141 B
Python

class UploadForm(forms.Form):
snapshot_file = forms.FileField(label=_("File"))
def clean(self):
data = self.cleaned_data