This project has been archived by its maintainers, and is no longer receiving any updates.
django-multipleselectionfield
A new model and form field. With this you can get a multiple select from a choices
Initial code got from https://github.com/goinnn/django-multiselectfield by Pablo Martin
But after more than 2 years without activity and no fork taking the control of it, it may be time to move on. Here is an attempt of a small renaming (to avoid name conflicts in packages), and including the improvements of most of the existing forks.
The LPGL v3 licence is preserved.
Originally, this egg is inspired by this [snippet](<http://djangosnippets.org/snippets/1200/)
Installation
In your models.py
from multipleselectionfield import MultipleSelectionField
...
MY_CHOICES = (('item_key1', 'Item title 1.1'),
('item_key2', 'Item title 1.2'),
('item_key3', 'Item title 1.3'),
('item_key4', 'Item title 1.4'),
('item_key5', 'Item title 1.5'))
MY_CHOICES2 = ((1, 'Item title 2.1'),
(2, 'Item title 2.2'),
(3, 'Item title 2.3'),
(4, 'Item title 2.4'),
(5, 'Item title 2.5'))
class MyModel(models.Model):
.....
my_field = MultipleSelectionField(choices=MY_CHOICES)
my_field2 = MultipleSelectionField(choices=MY_CHOICES2,
max_choices=3,
max_length=3)
In your settings.py
Only you need it, if you want the translation of django-multipleselectionfield
INSTALLED_APPS = (
#...
'multipleselectionfield',
#...
)
Example project
In the source tree, you will find a directory called
example
It contains a readily setup project that uses django-multipleselectionfield. You can run it as usual:
python manage.py migrate --noinput
python manage.py loaddata app_data
python manage.py runserver
1.1.0 (2022-10-06)
- Drop support Python 2
- Drop support Django 3 (use v1.0.0)
- Added support Django 4
1.0.0 (2019-05-19)
- Make the project work again
0.9.0 (2016-09-06)
- Initial import from https://github.com/goinnn/django-multiselectfield commit c232d1776c95abd20d1eacbf33c68bd6bad73bba
- Support for Django 1.10
Metadata
Release files for django-multipleselectionfield 1.1.1
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 | Actions |
|---|---|---|---|---|
| django-multipleselectionfield-1.1.1.tar.gz | 8.0 kB | Without provenance | Details for django-multipleselectionfield-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_multipleselectionfield-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for django_multipleselectionfield-1.1.1-py3-none-any.whl |
Total release size: 16.9 kB
Release files / django-multipleselectionfield-1.1.1.tar.gz
| Download URL | django-multipleselectionfield-1.1.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b502ad6dd559d47d1e88a68f39379153531b3361569347f55b8c630c8feced6e
|
|
BLAKE2b-256 checksum How to use checksums |
b110bf94c34b90d53f44d400573178d75e9829c4cca1d87922c0c09129c3f49b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / django_multipleselectionfield-1.1.1-py3-none-any.whl
| Download URL | django_multipleselectionfield-1.1.1-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d9ae2582ad39649ef186d354caf3ad53ce5e7707fb6d7ae477279daf4cc0244
|
|
BLAKE2b-256 checksum How to use checksums |
57e7caba1e034e91ba7a3179da68bbaaf1447d2c74bf0bab72a035a44f10287c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for django-multipleselectionfield 1.1.1
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.