Metadata-Version: 2.4
Name: django-choices-2
Version: 3.0.0
Summary: Sanity for the django choices functionality.
Author-email: PJ Farrell <pj@mariska.dev>
License: Copyright (c) 2011-2026 Jason Webb and PJ Farrell
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
        THE SOFTWARE.
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Requires-Dist: django>=4.2
Description-Content-Type: text/markdown

# Django-Choices-2

[![build-status](https://github.com/peterfarrell/django-choices-2/actions/workflows/ci.yml/badge.svg)](https://github.com/peterfarrell/django-choices-2/actions/workflows/ci.yml)
[![code-quality](https://github.com/peterfarrell/django-choices-2/actions//workflows/code_quality.yml/badge.svg)](https://github.com/peterfarrell/django-choices-2/actions//workflows/code_quality.yml)
[![coverage](https://codecov.io/gh/peterfarrell/django-choices-2/branch/main/graph/badge.svg)](https://codecov.io/gh/peterfarrell/django-choices-2)
[![docs](https://readthedocs.org/projects/django-choices-2/badge/?version=latest)](https://django-choices-2.readthedocs.io/en/latest/)
[![pypi](https://img.shields.io/pypi/v/django-choices-2.svg)](https://pypi.python.org/pypi/django-choices-2)
[![python-versions](https://img.shields.io/pypi/pyversions/django-choices-2.svg)](https://pypi.python.org/pypi/django-choices-2)
[![django-versions](https://img.shields.io/pypi/djversions/django-choices-2.svg)](https://pypi.python.org/pypi/django-choices-2)

`django-choices-2` is a maintained fork of the django-choices library thatprovides a declarative way of using the choices option on django fields.

The library emerged as a successor to the original django-choices project after it was archived in 2023. django-choices-2 maintains full backward compatibility with initial release making it a drop-in replacement for existing django-choices installations.  Future releases will start to diverge.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The last release of the original `django-choices` was 2.0.0. Since we have dropped support for Django 3.2 and EOL versions of Python, our first release will be **3.0.0**.

## Introduction

Django choices provides a declarative way of using the `choices` option on Django fields.

See the [documentation](https://django-choices-2.readthedocs.io/en/latest/) on ReadTheDocs on how to use this library.

## Acknowledgements

A big thank you to the original authors of `django-choices` for their work on the original package:

* [Jason Webb](https://github.com/bigjason)
* [Sergei Maertens](https://github.com/sergei-maertens)

## License

Licensed under the [MIT License](https://en.wikipedia.org/wiki/MIT_License).

## Source Code

The source code can be found on [Github](https://github.com/peterfarrell/django-choices-2).
