Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#15360 closed (fixed)

Regression with handling of template context

Reported by: julien 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: UI/UX:

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 Changed 4 years ago by russellm

  • Keywords blocker added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

comment:2 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r15600.

comment:3 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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