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,9 +503,9 @@ class ObjectDBManager(TypedObjectManager):
ScriptDB.objects.copy_script(script, new_obj=new_object)
# copy over all tags, if any
for tag in original_object.tags.get():
new_object.tags.add(tag)
for tag in original_object.tags.get(return_tagobj=True, return_list=True):
new_object.tags.add(tag=tag.key, category=tag.category, data=tag.data)
return new_object
def clear_all_sessids(self):