Fixed xml error

This commit is contained in:
TurnMeOn
2017-04-27 17:00:25 +08:00
parent a4df65bfc7
commit 16d1564759
4 changed files with 16 additions and 17 deletions
Binary file not shown.
@@ -1,20 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- yyyy-MM-dd-HH-mm-ss, Locale.CHINA-->
<person updateTime={{ 'NULL' }}
id={{ stu_id }}
nickname={{ nickname }}
realname={{ realname }}
birthday={{ birthday }}
sex={{ gender }}
mobile={{ mobile }}
email={{ email }}
schoolID={{ school_id }}
schoolName={{ school_name }}
location={{ province }}
zipCode={{ 10000 }}
major={{ major }}
grade={{ 'NULL' }}
enrollDate={{ 'NULL' }}
<person updateTime="{{ 'NULL' }}"
id="{{ stu_id }}"
nickname="{{ nickname }}"
realname="{ realname }}"
birthday="{{ birthday }}"
sex="{{ gender }}"
mobile="{{ mobile }}"
email="{{ email }}"
schoolID="{{ school_id }}"
schoolName="{{ school_name }}"
location="{{ province }}"
zipCode="{{ 10000 }}"
major="{{ major }}"
grade="{{ 'NULL' }}"
enrollDate="{{ 'NULL' }}"
>
</person>
+1 -1
View File
@@ -33,4 +33,4 @@ def QueryUser(request, user_id):
}
# return render(request, 'Resource/person_information.xml', data)
# return HttpResponse(data['city'])
return render(request, 'Resource/person-information.xml', data)
return render(request, 'Resource/person-information.xml', data, content_type='application/xml')
BIN
View File
Binary file not shown.