added backward compatibility fix for row.id when id not called id (doh)
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.1 (2012-08-28 14:45:03) rc4
|
Version 2.00.1 (2012-08-28 14:57:17) rc4
|
||||||
|
|||||||
@@ -1825,6 +1825,10 @@ class BaseAdapter(ConnectionPool):
|
|||||||
value = field.filter_out(value)
|
value = field.filter_out(value)
|
||||||
colset[fieldname] = value
|
colset[fieldname] = value
|
||||||
|
|
||||||
|
# for backward compatibility
|
||||||
|
if field.type=='id' and fieldname!='id' and not 'id' in table.fields:
|
||||||
|
colset['id'] = value
|
||||||
|
|
||||||
if field.type == 'id' and not cacheable:
|
if field.type == 'id' and not cacheable:
|
||||||
# temporary hack to deal with
|
# temporary hack to deal with
|
||||||
# GoogleDatastoreAdapter
|
# GoogleDatastoreAdapter
|
||||||
|
|||||||
Reference in New Issue
Block a user