#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 , 15 years ago
| Keywords: | blocker added | 
|---|---|
| Triage Stage: | Unreviewed → Accepted | 
  Note:
 See   TracTickets
 for help on using tickets.
    
SmileyChris has been notified; he has a draft patch in need of review