Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradmontgomery/django-chosenadmin
Adds Chosen.js to the Django Admin app.
https://github.com/bradmontgomery/django-chosenadmin
admin chosen django javascript
Last synced: 2 months ago
JSON representation
Adds Chosen.js to the Django Admin app.
- Host: GitHub
- URL: https://github.com/bradmontgomery/django-chosenadmin
- Owner: bradmontgomery
- License: mit
- Created: 2013-11-23T20:33:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T22:50:58.000Z (almost 7 years ago)
- Last Synced: 2024-08-09T12:19:26.714Z (5 months ago)
- Topics: admin, chosen, django, javascript
- Language: Python
- Size: 59.6 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
django-chosenadmin
==================Adds the [Chosen.js](http://harvesthq.github.io/chosen/) plugin to ``
and `` elements in Django's admin.Setup
-----1. Install with `pip install django-chosenadmin`.
2. Add `chosenadmin` to your `INSTALLED_APPS`.
3. Add `'chosenadmin.middleware.ChosenAdminMiddleware'` to your list of
`MIDDLEWARE` in your project.About
-----This app is kind of a hack. It uses middleware to rewrite the Response content,
adding in CSS and JavaScript where appropriate. This may or may not break
anything else you've got.However, it's pretty easy to install, and once installed, you don't have to
do anything special in the admin to see it work.This is based on Chosen v1.8.2 and only supports jQuery. Last tested with Django
1.11 (it uses new-style middleware) with python 3.6.