Skip to content

Commit

Permalink
Merge pull request #119 from ChanTsune/feature/fix-error-on-boost-que…
Browse files Browse the repository at this point in the history
…ry-alive

Fix alive filter
  • Loading branch information
ChanTsune authored Jul 18, 2020
2 parents 09483d4 + 22105b2 commit 28430d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_boost/templatetags/boost_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def dead(queryset):

@register.filter
def alive(qureyset):
if hasattr(qureyset, 'alive') and callable(qureyset, 'alive'):
if hasattr(qureyset, 'alive') and callable(qureyset.alive):
return qureyset.alive()
return qureyset

0 comments on commit 28430d1

Please sign in to comment.