#26212 closed Bug (fixed)
Forms' FileField is not pickleable
Description ¶
In Django 1.6 through to 1.9 and current HEAD, FileField cannot be pickled though other form fields can.
Steps to reproduce:
import pickle from django import forms pickle.dumps(forms.FileField())
On 1.5.x, this succeeds, but 1.6 through to 1.9 fail:
PicklingError: Can't pickle <function <lambda> at 0x7faab4f2cde8>: it's not found as django.utils.translation.<lambda>
See #17976 for a similar problem with BooleanField.
Change History (7)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
Please uncheck "Patch needs improvement" when adding the test as requested on the pull request.
comment:3 by , 9 years ago
Patch needs improvement: | unset |
---|
comment:4 by , 9 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
I'll add some release notes if we decide to backport this.
Note:
See TracTickets
for help on using tickets.
PR