From 8d2fb762f22d4899941b5cea2117365eb55a87d6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 8 Dec 2012 00:12:12 +0100 Subject: Imports: Manage overwrite optionaly --- chimere/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chimere/forms.py') 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 "\ -- cgit v1.2.3