diff options
Diffstat (limited to 'chimere/forms.py')
| -rw-r--r-- | chimere/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
