From c7fd8c443357879aab51134e6679ace45baec103 Mon Sep 17 00:00:00 2001 From: keroth Date: Sun, 10 May 2015 00:10:26 +0200 Subject: Added file support --- inventory/forms.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 inventory/forms.py (limited to 'inventory/forms.py') diff --git a/inventory/forms.py b/inventory/forms.py new file mode 100644 index 0000000..264f8cb --- /dev/null +++ b/inventory/forms.py @@ -0,0 +1,9 @@ +from django import forms + + +class UploadFileForm(forms.Form): + + types = (('1', 'Parent Tree'), ('2', 'Regal')) + + file = forms.FileField() + type = forms.ChoiceField(widget=forms.RadioSelect, choices=types) \ No newline at end of file -- cgit v1.2.3