Skip to content

Commit

Permalink
Fix clone of one to many and many to one
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianKapunkt committed Sep 20, 2019
1 parent 32b8758 commit 78a506b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_clone/mixins/clone.py
Expand Up @@ -112,7 +112,7 @@ def make_clone(self, attrs=(), sub_clone=False):
]

many_to_one_or_one_to_many_fields = [
f.name for f in self._meta.related_objects
f for f in self._meta.related_objects
if any([f.many_to_one, f.one_to_many])
and f.name in self._clonable_many_to_one_or_one_to_many_fields
]
Expand Down

0 comments on commit 78a506b

Please sign in to comment.