This is django application that brings select2 widget to select inputs in admin.
Project aims to support Python 3.7+ and Django 2.2+.
For Django < 2.0 version support or python-2.x compatibility, please use version 1.3.4 which is the last version to support python-2.x compatibility.
For Django 2.0/2.1 version support or Python 3.5/3.6 compatibility, please use version 1.5.7 which is the last version to support Django 2.0/2.1 and Python 3.5/3.6 compatibility.
This django library is just a lightweight wrapper on Select2 library and provides easy-to-use basic select2 functionality in a django project. If you need feature-rich solution, i recommend you to look at the latest django-select2 library, which have ajax loading support.
If anyone really wants this functionality in django-easy-select2, please feel free to contribute.
Currently project is not in active development state and is maintained by community. Pull requests are welcomed!
Upgrade notes
For details please read changelog.
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):
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.
Metadata
Release files for django-easy-select2 1.5.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-easy-select2-1.5.8.tar.gz | 236.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_easy_select2-1.5.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 506.7 kB
Release files / django-easy-select2-1.5.8.tar.gz
| Download URL | django-easy-select2-1.5.8.tar.gz |
|---|---|
| Size | 236.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24ae57941f52afa04580d725c952068b6c6c6419e4ddaecdf79587addd2c013d
|
|
BLAKE2b-256 checksum How to use checksums |
2e35f690a8bf41749bd587d297b4e25dd421834048141a60753ee91fac3e66e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|
Release files / django_easy_select2-1.5.8-py3-none-any.whl
| Download URL | django_easy_select2-1.5.8-py3-none-any.whl |
|---|---|
| Size | 270.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa102429773ca6d71155640a5350b336481c25fb61044b52dee0122b1acf872c
|
|
BLAKE2b-256 checksum How to use checksums |
6140f078031009e3f2067f4fd0e2bd75c7e742e96ed09cd717f4f6101597bdc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|
Security for django-easy-select2 1.5.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.