Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion stream_django/templatetags/activity_tags.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import django
from django import template
from django.template import Context, loader
from stream_django.exceptions import MissingDataException
Expand Down Expand Up @@ -41,7 +42,10 @@ def render_activity(context, activity, template_prefix='', missing_data_policy=L

tmpl = loader.get_template(template_name)
context['activity'] = activity
context = Context(context)

if django.get_version() < 1.11:
context = Context(context)

return tmpl.render(context)


Expand Down