From bd6dea1a3128ab924eb82a63498cd512d0b27bfb Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 30 Oct 2013 23:01:10 +0100 Subject: HTML-XSLT import: manage write on the database - import tests - fix pointwidget when using a name not equal to point --- chimere/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chimere/forms.py') diff --git a/chimere/forms.py b/chimere/forms.py index 655bbd3..1ba90a0 100644 --- a/chimere/forms.py +++ b/chimere/forms.py @@ -165,7 +165,8 @@ class ImporterAdminForm(forms.ModelForm): not self.cleaned_data.get('zipped'): raise forms.ValidationError(_(u"Shapefiles must be provided in a "\ u"zipped archive.")) - if self.cleaned_data.get('source') and \ + if self.cleaned_data.get('importer_type') != 'XSLT' and \ + self.cleaned_data.get('source') and \ self.cleaned_data.get('source_file'): raise forms.ValidationError(_(u"You have to set \"source\" or " u"\"source file\" but not both.")) -- cgit v1.2.3