Added some more functionality to the copy method of objects, as well as some minor fixes.

This commit is contained in:
Griatch 2012-09-11 23:47:29 +02:00
parent 3c96dc9cc9
commit cc6fa079b6
3 changed files with 30 additions and 20 deletions

View file

@ -539,7 +539,7 @@ def from_pickle(data, do_pickle=True):
return item
elif _IS_PACKED_DBOBJ(item): # this is a tuple and must be done before tuple-check
#print item[1], item[2]
if item[2]: #TODO Not sure why this could ever be None, but it can
if item[2]: #Not sure why this could ever be None, but it can
return _TO_TYPECLASS(_TO_MODEL_MAP[item[1]].objects.get(id=item[2]))
return None
elif dtype == tuple: