#导入Library类
from django.template import Library
# 创建类对象,变量名固定
register=Library()

@register.filter
def mod(value):
    # 定义求余函数mod，将value对2求余
    return value%2 == 0
edf16cfcd79d320fdd04a82e4b74346a04233993
<mask token>

<mask token>


@register.filter
def mod(value):
    return value % 2 == 0

<mask token>
register = Library()


@register.filter
def mod(value):
    return value % 2 == 0

from django.template import Library
register = Library()


@register.filter
def mod(value):
    return value % 2 == 0

#导入Library类
from django.template import Library
# 创建类对象,变量名固定
register=Library()

@register.filter
def mod(value):
    # 定义求余函数mod，将value对2求余
    return value%2 == 0