{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/5"}],"enrichment":{"capability":"Provides Django model fields that store and retrieve Django's TextChoices and IntegerChoices enums as native enum instances rather than raw strings or integers.","skillfed_tags":["django-orm","type-safety","enum-field"],"use_cases":["Store status or state values in a model while maintaining type safety and IDE autocomplete for enum members.","Replace raw string/integer constants in database fields with strongly-typed enum choices that can be validated at the type-checking level.","Combine multiple flag options in a single integer field using IntegerChoicesFlagField for efficient bitwise storage.","Simplify conditional logic by comparing model field values directly against enum members instead of string literals."],"what_it_does":"django-choices-field bridges Django's TextChoices and IntegerChoices enums with model fields, so that when you retrieve a field value from the database, you get back the actual enum member rather than its raw string or integer value. This preserves type information and lets you use enum methods and comparisons naturally in your code.\n\nThe package provides three field types: TextChoicesField for text-based choices, IntegerChoicesField for integer-based choices, and IntegerChoicesFlagField for bitwise-combinable flags. It depends only on django and typing_extensions, making it a lightweight addition to existing Django projects. The library supports modern Django versions (4.2 through 6.0) and Python 3.10 and later.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, supports current Django and Python versions, and solves a genuine friction point in Django development\u2014the gap between TextChoices/IntegerChoices enums and what you actually get back from the database. Low install friction and permissive licensing make it a straightforward addition to any Django project."},"id":"django-choices-field","links":{"html":"https://skillfed.io/packages/django-choices-field","md":"https://skillfed.io/packages/django-choices-field.md","pypi":"https://pypi.org/project/django-choices-field/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-27","license_spdx":null,"license_treatment":"permissive","name":"django-choices-field","python_support":"supports_current","summary":"Django field that set/get django's new TextChoices/IntegerChoices enum."},"popularity":{"monthly_downloads":99312,"position":13028,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.0"}
