Skip to content

Fix for Incorrect URLs with multiple views on the same model #759

Draft
jacobgarder wants to merge 5 commits into
smithyhq:mainfrom
jacobgarder:wip681-multiple-views-same-model
Draft

Fix for Incorrect URLs with multiple views on the same model #759
jacobgarder wants to merge 5 commits into
smithyhq:mainfrom
jacobgarder:wip681-multiple-views-same-model

Conversation

@jacobgarder

Copy link
Copy Markdown

Relatated to #681

Comment thread sqladmin/models.py
pk=get_object_identifier(obj),
)

def _build_url_from_view(self, name: str, request: Request, obj: Any) -> URL:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not change original _build_url_for ? If identity is set by user, use that, otherwiose default slugify_class_name(obj.__class__.__name__).

@mmzeynalli

Copy link
Copy Markdown
Member

@jacobgarder also please update conflicts

@mmzeynalli mmzeynalli linked an issue Apr 6, 2026 that may be closed by this pull request
2 tasks
@mmzeynalli mmzeynalli added the under-discussion This fix/feature is still under discussion label Apr 6, 2026
@mmzeynalli mmzeynalli marked this pull request as draft June 4, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

under-discussion This fix/feature is still under discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect URLs with multiple views on the same model

2 participants