Updating to make unittests work

This commit is contained in:
Griatch 2014-05-11 19:41:37 +02:00
parent f3af089aac
commit cfd2f111f1
3 changed files with 12 additions and 3 deletions

View file

@ -389,7 +389,7 @@ class ObjectManager(TypedObjectManager):
return None
# copy over all attributes from old to new.
for attr in original_object.get_all_attributes():
for attr in original_object.attributes.all():
new_object.attributes.add(attr.key, attr.value)
# copy over all cmdsets, if any