Made OOB tracking work for Attributes. Tested repeat across reloads.

This commit is contained in:
Griatch 2013-10-17 19:07:01 +02:00
parent 57e7c6a11e
commit d7fc0c7e16
2 changed files with 25 additions and 19 deletions

View file

@ -209,7 +209,9 @@ def unpack_dbobj(item):
except ObjectDoesNotExist:
return None
# even if we got back a match, check the sanity of the date (some databases may 're-use' the id)
return _TO_DATESTRING(obj.dbobj) == item[2] and obj or None
try: dbobj = obj.dbobj
except AttributeError: dbobj = obj
return _TO_DATESTRING(dbobj) == item[2] and obj or None
#
# Access methods