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

fix(generic): use dal widget only for models with autocomplete endpoint #772

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

b1rger
Copy link
Contributor

@b1rger b1rger commented Apr 11, 2024

The generic form overrides the default select widgets with autocomplete
widgets provided by the django autocomplete light app. This can only
work for contenttypes that provide an autocomplete endpoint. We can only
be sure of that for models that inherit from the GenericModel, so we
skip the override for all the others.

Closes: #764

@b1rger b1rger marked this pull request as ready for review April 11, 2024 09:02
The generic form overrides the default select widgets with autocomplete
widgets provided by the django autocomplete light app. This can only
work for contenttypes that provide an autocomplete endpoint. We can only
be sure of that for models that inherit from the GenericModel, so we
skip the override for all the others.

Closes: #764
@b1rger b1rger merged commit 1de88f0 into main Apr 12, 2024
11 checks passed
@b1rger b1rger deleted the birger/764-autocomplete branch May 14, 2024 15:17
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.

Readd contenttype to autocomplete
1 participant