-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Paginator for raw_id_fields
popup returns 404
#420
Comments
@stefanofusai could you share your project (remove all the unnecessary parts) so I can debug the problem quickly? |
@fabiocaccamo the project is quite big (and private) so it's pretty hard to share it. Maybe we could schedule a call and I could show it to you? Anyhow here's a minimal repro of a model breaking: @admin.register(User)
class UserAdmin(BaseUserAdmin):
pass
@admin.register(UserProfile)
class UserProfileAdmin(admin.ModelAdmin):
raw_id_fields = ("user",) |
@stefanofusai ok don't worry, I'll replicate the problem myself as soon as I have time. |
@stefanofusai I think this issue might be caused by the Could you please check if the problem still occurs when this library is not used? |
@fabiocaccamo I can confirm that not using this library (and therefore using the standard Django admin) works fine; the popup redirects first to |
Python version
3.13
Django version
5.1.4
Package version
0.29.3
Current behavior (bug description)
When opening the popup for a related model (defined in the admin class via the
raw_id_fields
var) and trying to navigate through the pages of the related model, clicking on any page returns 404The html for the paginator is as follows:
But upon clicking any of these links, the following error appears:
From my understanding the href isn't being concatenated to the popup URL, but I'm unsure what the cause is
Expected behavior
Pagination for popups of related models works fine
The text was updated successfully, but these errors were encountered: