BooleanFilter in Django

BooleanFilter filter matches a boolean, either True or False, used with BooleanField and NullBooleanField by default.

Example:

boolean_field_filter = filters.BooleanFilter(field_name='boolean_field_filter', label='Boolean Field Filter')

    

Comments

Popular posts from this blog

Messages Framework in Django

Forms in Django(bound, unbound, clean, is_valid, errors)

Advantages to using URLField() over TextField()