Skip to content

Commit

Permalink
creafz#9 use dict instead of Context to work with django >= 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pfister committed Oct 13, 2017
1 parent 785c599 commit f6e7c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions social_widgets/templatetags/social_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from locale import normalize

from django.template import loader, TemplateDoesNotExist
from django.template.base import Node, Context, TemplateSyntaxError
from django.template.base import Node, TemplateSyntaxError
from django.utils.encoding import smart_text
from django.utils.translation import get_language, to_locale

Expand Down Expand Up @@ -113,7 +113,7 @@ def render(self, context):

try:
t = loader.get_template(template)
return t.render(Context(kwargs))
return t.render(kwargs)
except TemplateDoesNotExist:
return ''

Expand Down

0 comments on commit f6e7c65

Please sign in to comment.