Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for Django 5.x choices #73

Open
sevdog opened this issue Sep 16, 2024 · 0 comments
Open

Add support for Django 5.x choices #73

sevdog opened this issue Sep 16, 2024 · 0 comments

Comments

@sevdog
Copy link

sevdog commented Sep 16, 2024

Motivation

Django 5.0 introduces new methods to define choices (see Django 5.0 announcement, now choices may be:

  • an old style list/tuple
  • a dict
  • a class which inherits from Choice
  • a callable which return one of the previous

Proposed Solution

The method get_field_details should check which kind of choices are available on the field before using it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant