#30252: ImageField's to_python() stores reference to closed Image object
-------------------------------------+-------------------------------------
Reporter: Felix Dreissig | Owner: nobody
Type: Bug | Status: new
Component: File | Version: 2.1
uploads/storage |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Felix Dreissig):
* status: closed => new
* resolution: needsinfo =>
Comment:
Please find two patches (in `git format-patch` format) now attached to
this issue:
1. A test demonstrating the issue.
2. A possible fix. I still think a (possibly better) alternative would be
removing the attribute and let users call `open()` themselves if they need
to, but one could consider that a breaking change.
--
Ticket URL: <https://code.djangoproject.com/ticket/30252#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/061.eeda118a74b038bca06438e27c7ec09c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.