summaryrefslogtreecommitdiffstats
path: root/inventory/forms.py
diff options
context:
space:
mode:
authorkeroth <keroth@janssen-jan.de>2015-05-10 00:10:26 +0200
committerkeroth <keroth@janssen-jan.de>2015-05-10 00:10:26 +0200
commitc7fd8c443357879aab51134e6679ace45baec103 (patch)
tree29b8e55b352ea8b22207cc6bb8b9ebb8d97745a9 /inventory/forms.py
parentb518d7011419a3c9e5d2352eab21020cb6031d29 (diff)
downloadktt-inventory-system-c7fd8c443357879aab51134e6679ace45baec103.tar.bz2
Added file support
Diffstat (limited to 'inventory/forms.py')
-rw-r--r--inventory/forms.py9
1 files changed, 9 insertions, 0 deletions
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