#5808: Cannot pickle the default filters
----------------------------+-----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: Core framework
Version: SVN | Keywords: template pickle filter
Stage: Unreviewed | Has_patch: 1
----------------------------+-----------------------------------------------
Reproduction code:
from django import template
t = template.Template("{{ firstname|capfirst }}")
c = template.Context("firstname": "simon")
p = pickle.dumps(t)
print pickle.loads(p).render(c)
Expected result:
Simon
Actual result:
<class 'pickle.PicklingError'>: Can't pickle <function _dec at
0x83c010c>: it's not found as django.template.defaultfilters._dec
--
Ticket URL: <http://code.djangoproject.com/ticket/5808>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---