Update manager.py
This commit is contained in:
parent
87456c081f
commit
5e6a29a430
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue