summaryrefslogtreecommitdiff
path: root/chimere/main/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/main/forms.py')
-rw-r--r--chimere/main/forms.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/chimere/main/forms.py b/chimere/main/forms.py
index 7b7fc05..2337644 100644
--- a/chimere/main/forms.py
+++ b/chimere/main/forms.py
@@ -268,6 +268,12 @@ class FileForm(forms.Form):
u"GPX or KML file"))
return data
+class FullFileForm(FileForm):
+ name = forms.CharField(label=_(u"Name"))
+ def __init__(self, *args, **kwargs):
+ super(FullFileForm, self).__init__(*args, **kwargs)
+ self.fields.keyOrder = ['name', 'raw_file']
+
class AreaAdminForm(forms.ModelForm):
"""
Admin page to create an area