Skip to content

Add support for callable choices (#73)#82

Open
sevdog wants to merge 1 commit intosphinx-doc:mainfrom
sevdog:support-lazy-choices
Open

Add support for callable choices (#73)#82
sevdog wants to merge 1 commit intosphinx-doc:mainfrom
sevdog:support-lazy-choices

Conversation

@sevdog
Copy link
Copy Markdown

@sevdog sevdog commented Apr 2, 2026

Short description

Adds support for callable choices (see #73).

Proposed changes

By evaluating field.choices into a list and by using this list for other checks it enables to support lazy choices like callable which were introduced in django 5.0 release.

Resolved issues

Fixes: #73

@sevdog sevdog requested a review from timobrembeck as a code owner April 2, 2026 13:20
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1a1b1a8) to head (5a63f78).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #82   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          325       326    +1     
=========================================
+ Hits           325       326    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Django 5.x choices

1 participant