-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Nested and Reverse relationship don't cloned #488
Comments
Thanks for reporting this issue. |
Hi @ma1onso Can you also include the version of django and django clone your experiencing the issue. |
django 3.1.13 |
@ma1onso Can you also clarify which admin and what code is used in cloning the Survey objects This is missing the class SurveyAdmin(CloneModelAdmin):
save_as = True
inlines = [
QuestionInline,
] |
Hi @jackton1, I put more information in the description above, I'm using the default Django admin interface. Thanks :) |
Perfect, I'll try to replicate the issue later today. |
The point is that the o2o clone, is not calling to the make_clone of the object, but just to the _create_copy_of_instance |
Is there an existing issue for this?
Describe the bug?
I have the next models:
I cloned almost all without problem, but, the questions from reverse relationship between Question and Survey, don't clone.
To Reproduce
Note:
Survey and Question admin are declared so:
What OS are you seeing the problem on?
linux
Expected behavior?
Clone all data, included the questions from a Survey
Relevant log output
No response
Anything else?
django 3.1.13
django-clone 2.9.4
python 3.7
Code of Conduct
The text was updated successfully, but these errors were encountered: