Skip to main content

Simple list_filter that offers filtering by __isnull.

Project description

Simple list_filter that offers filtering by __isnull.


The full documentation is at


Install Django isNull list_filter:

pip install django-isnull-list-filter

or use development version:

pip install -e git+

Directly use it in your admin:

from isnull_filter import isnull_filter
  class MyAdmin(admin.ModelAdmin):
     list_filter = (
         isnull_filter('author'),  # Just set the field
         isnull_filter('author', _("Hasn't got author")),  # Or you can override the default filter title
         isnull_filter('author', _("Has got author"), negate=True),  # And you can negate the condition


  • Can be used on:
    • simple field
    • ForeignKeyField
    • related ForeignKeyField
    • ManyToManyField
    • OneToOneField
  • Default title can be overriden

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox



  • Petr Dlouhý

Tools used in rendering this package:


0.1.0 (2017-04-26)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-isnull-list-filter, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django-isnull-list-filter-0.2.0.tar.gz (17.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page