Select2 option fields for Django
Project description
Django-Select2
This is a [Django](https://www.djangoproject.com/) integration of [Select2](http://ivaynberg.github.com/select2/).
The app includes Select2 driven Django Widgets and Form Fields.
Installation
Install django_select2
pip install django_select2
Add django_select2 to your INSTALLED_APPS in your project settings.
When deploying on production server, run :-
python manage.py collectstatic
More details
More details can be found on my blog at - [http://blog.applegrew.com/2012/08/django-select2/](http://blog.applegrew.com/2012/08/django-select2/).
External Dependencies
Django - This is obvious.
jQuery - This is not included in the package since it is expected that in most scenarios this would already be available.
Example Application
Please checkout testapp application. This application is used to manually test the functionalities of this component. This also serves as a good example.
You need only django 1.4 or above to run that.
Changelog Summary
### v2.0.1
Auto id registration fixes.
### v2.0
Mostly major bug fixes in code and design. The changes were many, raising the possibility of backward incompatibility. However, the backward incompatibility would be subtle.
Auto fields (sub-classes of AutoViewFieldMixin) now accepts auto_id parameter. This can be used to provide custom id for the field. The default is ‘module.field_class_name’. Ideally only the first instance of an auto field is registered. This parameter can be used to force registration of additional instances by passing a unique value.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Django-Select2-2.0.1.tar.gz
.
File metadata
- Download URL: Django-Select2-2.0.1.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f46300b8e6ec4ac261c43b491d90c58c88a72be2eea6194856d32773f635e867 |
|
MD5 | ced022aab7934f6e0d2952fd2fac0d59 |
|
BLAKE2b-256 | 418db126f009e4f5d531886687be826878e5b9f21d15ac9f56fd452b65007cda |