Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#15360 closed (fixed)

Regression with handling of template context

Reported by: Julien Phalip Owned by: nobody
Component: Template system Version: 1.2
Severity: Keywords: blocker
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It seems that [15591] has broken something in the way the context is passed to the template, as the tests are now failing for me (simply run with

ERROR: test_current_site_in_context_after_login (django.contrib.auth.tests.views.LoginTest)
Traceback (most recent call last):
  File "/Users/julien/.virtualenvs/djangotests/src/django/django/contrib/auth/tests/", line 203, in test_current_site_in_context_after_login
    self.assertEquals(response.context['site'], site)
  File "/Users/julien/.virtualenvs/djangotests/src/django/django/template/", line 46, in __getitem__
    raise KeyError(key)
KeyError: 'site'

Change History (3)

comment:1 Changed 8 years ago by Russell Keith-Magee

Keywords: blocker added
Triage Stage: UnreviewedAccepted

SmileyChris has been notified; he has a draft patch in need of review

comment:2 Changed 8 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

Fixed in r15600.

comment:3 Changed 8 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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