-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix #246 -- Add support for deepcopy #265
Conversation
Codecov Report
@@ Coverage Diff @@
## master #265 +/- ##
==========================================
+ Coverage 97.40% 97.56% +0.15%
==========================================
Files 5 5
Lines 270 287 +17
==========================================
+ Hits 263 280 +17
Misses 7 7
Continue to review full report at Codecov.
|
Thanks, @vchrisb, to be honest. I am going to need a minute to review this. Django does a lot of magic here to avoid issues with the file objects when coping them. Copying the whole dict seems to break this again. Would you be so kind as to share a little more information about the exception and the error you are seeing in your setup in the issue description? That would help me a lot to identify the best solution. Thanks, Joe |
There is no exception itself while executing From my understanding, deepcopy is using the attributes of the You can look at provided test case and run it without the addition of To further clarify, it looks like I don't know why deepcopy still fails with django 2.2, but with it being EOL very soon, I did not further look into it. |
oh,
and maybe relevant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @vchrisb, for the explanation and for your endurance. I just did a quick review and noticed that Django has some intriguing behavior in the super class.
@codingjoe I spend some time on it again...
Still struggle with unpickle using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thank you, @vchrisb. This looks excellent! 🥇
this PR should fix #246
With Django 2.2 being EOL in April 2022,
deepcopy
support is only fixed for Django 3+