#26212: Forms' FileField is not pickleable -----------------------------+-------------------- Reporter: koterpillar | Owner: nobody Type: Bug | Status: new Component: Forms | Version: 1.9 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------+-------------------- In Django 1.6 through to 1.9 and current HEAD, FileField cannot be pickled though other form fields can.
Steps to reproduce: {{{ #!python 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. -- Ticket URL: <https://code.djangoproject.com/ticket/26212> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/054.e01e1452bc6d44667f2d0fff9a8a5708%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.