From e784740dd6356417bfb6627c68e3e68bbdfb8916 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 5 Oct 2012 12:37:39 +0200 Subject: Import: fix OSM import form --- chimere/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chimere/forms.py b/chimere/forms.py index c42e317..aedca9b 100644 --- a/chimere/forms.py +++ b/chimere/forms.py @@ -119,7 +119,8 @@ class ImporterAdminForm(forms.ModelForm): raise forms.ValidationError(_(u"You have to set \"source\" or " u"\"source file\" but not both.")) if not self.cleaned_data['source'] and \ - not self.cleaned_data['source_file']: + not self.cleaned_data['source_file'] and \ + self.cleaned_data['importer_type'] != 'OSM': raise forms.ValidationError(_(u"You have to set \"source\" or " u"\"source file\".")) return self.cleaned_data -- cgit v1.2.3