Skip to content

Fix/related model form field - #63

Merged
borhanst merged 13 commits into
mainfrom
fix/related-model-form-field
Sep 14, 2026
Merged

borhanst merged 13 commits into
mainfrom
fix/related-model-form-field

Conversation

@borhanst

Copy link
Copy Markdown
Owner

No description provided.

- Introduced `get_display_label` and `get_default_search_fields` functions to centralize label retrieval and search field defaults via the introspection backend.
- Updated `model_display_name` to utilize the new label retrieval method, ensuring consistent label rendering across the application.
- Refactored `ModelAdmin` and related views to use introspection for displaying object labels in dropdowns and search results.
- Enhanced JavaScript utility functions for normalizing option objects and handling label/value extraction.
- Updated templates to reflect changes in label handling, ensuring that displayed labels are derived from the introspection backend.
- Improved multi-relation and permission selection widgets to use the new label structure, maintaining backward compatibility with existing IDs.
@borhanst
borhanst merged commit 96853d9 into main Sep 14, 2026
3 checks passed
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.

1 participant