From 22105b2dab4ef0753aef6b30686506813fc3dc8d Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Tue, 14 Jul 2020 14:17:50 +0900 Subject: [PATCH] Fix alive filter --- django_boost/templatetags/boost_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_boost/templatetags/boost_query.py b/django_boost/templatetags/boost_query.py index 00eb624..291f643 100644 --- a/django_boost/templatetags/boost_query.py +++ b/django_boost/templatetags/boost_query.py @@ -29,6 +29,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