Opened 14 years ago

Closed 14 years ago

Last modified 13 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

Description

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 test_sqlite.py):

======================================================================
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/views.py", 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/context.py", line 46, in __getitem__
    raise KeyError(key)
KeyError: 'site'

Change History (3)

comment:1 by Russell Keith-Magee, 14 years ago

Keywords: blocker added
Triage Stage: UnreviewedAccepted

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

comment:2 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in r15600.

comment:3 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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