#16563: Error pickling request.user ---------------------------------+------------------------------------ Reporter: zero.fuxor@… | Owner: nobody Type: Bug | Status: new Component: contrib.auth | Version: 1.3 Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+------------------------------------
Comment (by tobias): As a work around, can't you just pickle a real User model object instead of request.user? E.g., the dumb way to do this might look something like: {{{ def some_view(request): pickle.dumps(User.objects.get(pk=request.user.pk)) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/16563#comment:15> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.