Fixed xml error
This commit is contained in:
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>
|
||||
|
||||
@@ -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')
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user