Django select2 theme for select input widgets.
Project description
This is django application that brings select2 widget to select inputs in admin.
Project aims to support Python 2.7, 3.3 and 3.4, Django 1.6 and 1.7.
How it looks
Select one of existing values with single-valued choice field (ForeignKeyField, for example):
Easily select 1 or more “categories” for your project, you can also add a new one in the normal, Django-Admin manner by using the green + button with multiple-valued choice field (ManyToManyField):
Don’t see the “mood” you want? No problem, just type in a new one. It will be there as a choice for the next time too (text input).
Quickstart
In your admin.py:
from django.contrib import admin from easy_select2 import select2_modelform from polls.models import Poll PollForm = select2_modelform(Poll, attrs={'width': '250px'}) class PollAdmin(admin.ModelAdmin): form = PollForm
Thats all. All your choice widgets are select2 widgets 250px wide.
Documentation
You can read more in the documentation.
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
Hashes for django-easy-select2-1.2.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f26ad18b9646d442968972710f881ed1effa8af885fe1f47befbe708005d88b |
|
MD5 | fa1892ae74c54619845ddfccb4c7236f |
|
BLAKE2b-256 | a879c16dca3af6d8c840a38d7c04aa2c44da244638f3b72147fec0905d57fcbb |