We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a386a74 commit d899c21Copy full SHA for d899c21
xform_builder/views.py
@@ -37,9 +37,8 @@ def clean_xls_file(self):
37
path = save_in_temp_dir(xls)
38
survey = create_survey_from_path(path)
39
try:
40
- file_name = survey.id_string
41
xform_str = survey.to_xml()
42
- self.file_name = file_name
+ self.file_name = "%s.xml" % survey.id_string
43
self.xform_str = xform_str
44
except ODKValidateError, error:
45
raise forms.ValidationError(u"Your XLS was valid but the form did not pass ODK Validate: %s" % repr(error))
0 commit comments