Opened 6 years ago

Closed 6 years ago

#11346 closed (invalid)

repr(request) is unavailable if model instance stored in request.META

Reported by: norn Owned by: nobody
Component: Core (Other) Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I've found that repr(request) is failed when my middleware stores some model instance in request.META.
Probably request.META is not the best way to sore some custom information, but I find it very useful in my case.
I am not sure is it a bug or design decision, so somebody who knows django.core.handlers.wsgi.WSGIRequest well please approve or reject.

Django 1.0.2 final, Python 2.4, running via mod_python, Apache/2.2.11

Change History (1)

comment:1 Changed 6 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

This isn't a bug, you shouldn't be modifying the contents of request.META.

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