Website for the bigbrother awards
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
210B

  1. from django import template
  2. from django.forms.fields import CheckboxInput
  3. register = template.Library()
  4. @register.filter(name='is_checkbox')
  5. def is_checkbox(value):
  6. return isinstance(value, CheckboxInput)