JobDoesburg / django-admin-multi-select-filter

Django admin filter for multiple select
https://pypi.org/project/django-admin-multi-select-filter/
MIT License
11 stars 2 forks source link
django django-admin django-filter hacktoberfest

Django admin multi-select filter

Django admin multi-select filter is a Django app that allows you to add a multi-select filter to the Django admin.

Installation

  1. Install using pip:
    pip install django-admin-multi-select-filter
  2. Use the MultiSelectFilter (or MultiSelectRelatedFieldListFilter when using on related fields) in your admin classes (you do not need to add the app to INSTALLED_APPS):

    from django.contrib import admin
    from django_admin_multi_select_filter.filters import MultiSelectFieldListFilter
    
    class MyModelAdmin(admin.ModelAdmin):
        list_filter = (
            ...
            ('my_field', MultiSelectFieldListFilter),
            ...
        )