Skip to content

Commit

Permalink
Implemented Django 1.8 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Apr 6, 2015
1 parent 8751aaf commit a1abc88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion siteblocks/templatetags/siteblocks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django import template
from django.template.base import FilterExpression

from ..siteblocksapp import SiteBlocks

Expand Down Expand Up @@ -46,7 +47,7 @@ def __init__(self, block_alias, as_var=None):

def render(self, context):
block_alias = self.block_alias
if isinstance(self.block_alias, template.FilterExpression):
if isinstance(self.block_alias, FilterExpression):
block_alias = block_alias.resolve(context)

contents = siteblocks.get(block_alias, context)
Expand Down

0 comments on commit a1abc88

Please sign in to comment.