old_contents: """Taxonomy filters."""
  # from django.contrib.auth.models import User
  import django_filters
  from django_filters.filters import BooleanFilter
  from django_filters.widgets import BooleanWidget
  from django.db import models
  # from django import forms
  from .models import Taxon
  
  
  class TaxonFilter(django_filters.FilterSet):
      """Filter for Taxon."""
  
      current = BooleanFilter(widget=BooleanWidget())
  
      class Meta:
          """Class opts."""
  
          model = Taxon
          fields = ['name', 'rank', 'current', 'publication_status']
          filter_overrides = {
              models.CharField: {
                  'filter_class': django_filters.CharFilter,
                  'extra': lambda f: {'lookup_expr': 'icontains', },
              },
              # models.BooleanField: {
              #     'filter_class': django_filters.BooleanFilter,
              #     'extra': lambda f: {'widget': forms.CheckboxInput,},
              # },
          }
  
new_contents: """Taxonomy filters."""
  # from django.contrib.auth.models import User
  import django_filters
  from django_filters.filters import BooleanFilter
  from django_filters.widgets import BooleanWidget
  from django.db import models
  # from django import forms
  from .models import Taxon
  
  
  class TaxonFilter(django_filters.FilterSet):
      """Filter for Taxon."""
  
      current = BooleanFilter(widget=BooleanWidget())
  
      class Meta:
          """Class opts."""
  
          model = Taxon
          fields = ['taxonomic_name', 'rank', 'current', 'publication_status']
          filter_overrides = {
              models.CharField: {
                  'filter_class': django_filters.CharFilter,
                  'extra': lambda f: {'lookup_expr': 'icontains', },
              },
              # models.BooleanField: {
              #     'filter_class': django_filters.BooleanFilter,
              #     'extra': lambda f: {'widget': forms.CheckboxInput,},
              # },
          }
  
subject: fix search bug: TaxonFilter searches now taxonomic name