summaryrefslogtreecommitdiff
path: root/chimere/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-12-08 00:12:12 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-12-08 00:15:52 +0100
commit8d2fb762f22d4899941b5cea2117365eb55a87d6 (patch)
tree26ece5edb55f6f3aea316ac41d35964217fbd88e /chimere/forms.py
parentaf8522d68d00ff30bc188513525020f0eda3ae2d (diff)
downloadChimère-8d2fb762f22d4899941b5cea2117365eb55a87d6.tar.bz2
Chimère-8d2fb762f22d4899941b5cea2117365eb55a87d6.zip
Imports: Manage overwrite optionaly
Diffstat (limited to 'chimere/forms.py')
-rw-r--r--chimere/forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/chimere/forms.py b/chimere/forms.py
index eb64a04..0d4bba6 100644
--- a/chimere/forms.py
+++ b/chimere/forms.py
@@ -118,7 +118,7 @@ class NewsAdminForm(forms.ModelForm):
class ImporterAdminForm(forms.ModelForm):
filtr = forms.CharField(widget=ImportFiltrWidget, required=False)
importer_type = forms.ChoiceField(widget=ImporterChoicesWidget,
- choices=[('', '--')]+list(IMPORTER_CHOICES))
+ choices=[('', '--')]+list(IMPORTER_CHOICES))
class Meta:
model = Importer
widgets = {
@@ -134,11 +134,11 @@ class ImporterAdminForm(forms.ModelForm):
if self.cleaned_data.get('importer_type') == 'OSM' and \
not self.cleaned_data.get('filtr'):
raise forms.ValidationError(_(u"For OSM import you must be "\
- u"provide a filter. Select an area and node/way filter."))
+ u"provide a filter. Select an area and node/way filter."))
if self.cleaned_data.get('importer_type') == 'OSM' and \
not RE_XAPI.match(self.cleaned_data.get('filtr')):
raise forms.ValidationError(_(u"For OSM import you must be "\
- u"provide a filter. Select an area and node/way filter."))
+ u"provide a filter. Select an area and node/way filter."))
if self.cleaned_data.get('importer_type') == 'SHP' and \
not self.cleaned_data.get('zipped'):
raise forms.ValidationError(_(u"Shapefiles must be provided in a "\