Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fallback to Meta.formfield_callback #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arthurschuster
Copy link

From Django 4.2 onwards, due to django/django#15916, formfield_callback is no longer sent as an extra kwarg when a form is constructed using modelform_factory. In the Django Admin this is by default set to formfield_for_dbfield which as a result would not have been called for translated fields. For example for translated CharFields this has the effect that the class "vTextField" is missing.

from Django 4.2 onwards, due to
django/django#15916, `formfield_callback` is no
longer sent as an extra kwarg when a form is constructed using
`modelform_factory`
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.

None yet

1 participant