Opened 8 years ago

Last modified 8 years ago

#16563 closed Bug

Error pickling request.user — at Initial Version

Reported by: zero.fuxor@… Owned by: nobody
Component: contrib.auth Version: 1.3
Severity: Release blocker Keywords:
Cc: Torsten Bronger, kmike84@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


trying to pickle a request.user in trunk raises: TypeError, can't pickle function objects
Looking it shows that request.user is a SimpleLazyObject and it is a <lambda>, so it can not be pickled.


import cPickle as pickle


import pickle

def some_view(request):

pickle.dumps(request.user) # raise type error

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top