Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Merge Django 1.11 compatibility fix from syrusakbary#278
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Jun 17, 2017
1 parent 1d50585 commit bc21f90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyjade/ext/django/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,13 @@ def templatize(src, origin=None):
return func(html, origin)

return templatize
try:
trans_real.templatize = decorate_templatize(trans_real.templatize)
except AttributeError:
# Django 1.11 moved templatize to separate module
from django.utils.translation import template

trans_real.templatize = decorate_templatize(trans_real.templatize)
template.templatize = decorate_templatize(template.templatize)

try:
from django.contrib.markup.templatetags.markup import markdown
Expand Down

0 comments on commit bc21f90

Please sign in to comment.