Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

mgd020/django-admin-select2

Repository files navigation

django-admin-select2

Enable select2 for Django admin select inputs.

Automatically applies to all selects, excluding filtered selects (e.g. auth.User.groups).

Tested with Django versions 1.11 and 2.0.

Installation

pip install django-admin-select2

Update settings.py:

INSTALLED_APPS = [
    ...
    # must go before django.contrib.admin
    'django_admin_select2',
    ...
]

How it works

This app adds an overriding template for admin/base_site.html, adding the required css and js to extrahead and footer blocks respectively.

About

Enable select2 for Django admin select inputs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published