Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes a bug where you have context processors that expect the user object to be on the request object #21

Merged
merged 1 commit into from

2 participants

Patrick Altman Charles Leifer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 18, 2011
  1. Patrick Altman
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  oembed/parsers/base.py
2  oembed/parsers/base.py
View
@@ -21,7 +21,7 @@ def render_oembed(self, oembed_resource, original_url, template_dir=None,
- original_url: the url that was passed to the consumer
"""
provided_context = context or Context()
- context = RequestContext(mock_request())
+ context = RequestContext(context.get("request") or mock_request())
context.update(provided_context)
# templates are named for the resources they display, i.e. video.html
Something went wrong with that request. Please try again.