{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content"}],"enrichment":{"capability":"Adds model and form fields to Django that let you store and manage multiple selections from a choice list, persisting them as comma-separated values in a CharField.","skillfed_tags":["django-form-field","admin-integration"],"use_cases":["Store tags or categories on a model where a many-to-many table is overkill and simple comma-separated storage suffices.","Add multi-select checkboxes to Django admin forms without writing custom widgets.","Let users rank or reorder selected items using SortMultiSelectField with jQuery UI drag-and-drop.","Filter Django admin list views by multiple selections using the provided SimpleListFilter pattern.","Display multiple selections in admin list_display using the get_FOO_display() helper."],"what_it_does":"django-multiselectfield extends Django's model and form field system to handle multiple selections from a predefined choice list. Instead of using a separate many-to-many table, it stores the selected values as a comma-separated string in a CharField, which is simpler for lightweight use cases but trades query flexibility for simplicity. The package provides two field types: MultiSelectField for basic multi-choice storage and SortMultiSelectField (added in version 1.0.0) for user-orderable selections using jQuery UI.\n\nThe package integrates directly into Django's admin interface and form rendering. It handles validation (min_choices, max_choices), provides a display method for templates, and includes CSS fixes for admin alignment. The core dependency is Django alone; it supports Python 3.8+ and Django 3.2 through 5.1. Maintenance is steady but aging, with the last release in June 2025.","worth_installing":"Yes, if you need lightweight multi-select storage in Django without a separate table. Install friction is minimal and the package is stable. However, consider a proper many-to-many relationship if you need complex queries, filtering, or large-scale data. The LGPL license requires source disclosure of modifications in derivative works, which is fine for most projects but needs review in proprietary contexts."},"id":"django-multiselectfield","links":{"html":"https://skillfed.io/packages/django-multiselectfield","md":"https://skillfed.io/packages/django-multiselectfield.md","pypi":"https://pypi.org/project/django-multiselectfield/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-12","license_spdx":null,"license_treatment":"copyleft","name":"django-multiselectfield","python_support":"unspecified","summary":"Django multiple select field"},"popularity":{"monthly_downloads":1181991,"position":4255,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
