Permalink
Browse files

Add real request object if it exists in context

  • Loading branch information...
1 parent 97c9552 commit 9bb30dc552de1d5891539ee65309b363869f0904 @paltman committed Nov 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 oembed/parsers/base.py
@@ -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

0 comments on commit 9bb30dc

Please sign in to comment.