Update manager.py

This commit is contained in:
FatherGrishnak 2018-08-15 00:55:13 +00:00 committed by GitHub
parent 87456c081f
commit 5e6a29a430

View file

@ -503,8 +503,8 @@ class ObjectDBManager(TypedObjectManager):
ScriptDB.objects.copy_script(script, new_obj=new_object) ScriptDB.objects.copy_script(script, new_obj=new_object)
# copy over all tags, if any # copy over all tags, if any
for tag in original_object.tags.get(): for tag in original_object.tags.get(return_tagobj=True, return_list=True):
new_object.tags.add(tag) new_object.tags.add(tag=tag.key, category=tag.category, data=tag.data)
return new_object return new_object