#16563: Error pickling request.user
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
zero.fuxor@… | Status: reopened
Type: Bug | Component: contrib.auth
Milestone: 1.4 | Severity: Normal
Version: 1.3 | Keywords:
Resolution: | Has patch: 0
Triage Stage: Design | Needs tests: 0
decision needed | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Changes (by SmileyChris):
* status: closed => reopened
* stage: Unreviewed => Design decision needed
* resolution: wontfix =>
* milestone: => 1.4
Comment:
I'm going to reopen for now due to the fact this is a regression in 1.4.
Previously, this was possible:
{{{
def my_view(request):
obj = MyObj(user=request.user, amount=1)
request.session['unsaved_obj'] = obj
# ...
}}}
Now request.user has been changed to a `SimpleLazyObject` rather than
changing the request class to actually lazily return the true user object,
this will choke.
Maybe this is an acceptable regression, but it's something I tripped up on
in a project recently.
--
Ticket URL: <https://code.djangoproject.com/ticket/16563#comment:2>
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 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.