Show More
@@ -65,7 +65,7 b' class Command(BaseCommand):' | |||||
65 | models = root.findall('models')[0] |
|
65 | models = root.findall('models')[0] | |
66 | for model in models: |
|
66 | for model in models: | |
67 | tag_id = model.find(TAG_ID) |
|
67 | tag_id = model.find(TAG_ID) | |
68 |
global_id, exists = GlobalId.from_xml_element( |
|
68 | global_id, exists = GlobalId.from_xml_element(tag_id) | |
69 | tag_version = model.find(TAG_VERSION) |
|
69 | tag_version = model.find(TAG_VERSION) | |
70 | if tag_version is not None: |
|
70 | if tag_version is not None: | |
71 | version = int(tag_version.text) or 1 |
|
71 | version = int(tag_version.text) or 1 |
@@ -248,7 +248,7 b' class SyncManager:' | |||||
248 | tag_id = et.SubElement(tag_model, TAG_ID) |
|
248 | tag_id = et.SubElement(tag_model, TAG_ID) | |
249 | post.global_id.to_xml_element(tag_id) |
|
249 | post.global_id.to_xml_element(tag_id) | |
250 | tag_version = et.SubElement(tag_model, TAG_VERSION) |
|
250 | tag_version = et.SubElement(tag_model, TAG_VERSION) | |
251 | tag_version.text = post.version |
|
251 | tag_version.text = str(post.version) | |
252 |
|
252 | |||
253 | return et.tostring(response, ENCODING_UNICODE) |
|
253 | return et.tostring(response, ENCODING_UNICODE) | |
254 |
|
254 |
General Comments 0
You need to be logged in to leave comments.
Login now