Skip to content

Paginator for raw_id_fields popup returns 404 #420

Closed
@stefanofusai

Description

@stefanofusai

Python version
3.13

Django version
5.1.4

Package version
0.29.3

Current behavior (bug description)

Image

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 404

Image

The html for the paginator is as follows:

<p class="paginator">

    <span class="this-page">1</span> 

    <a href="?_popup=1&amp;_to_field=id&amp;p=2">2</a> 

    <a href="?_popup=1&amp;_to_field=id&amp;p=3">3</a> 

    <a href="?_popup=1&amp;_to_field=id&amp;p=4">4</a> 

    <a href="?_popup=1&amp;_to_field=id&amp;p=5" class="end">5</a> 

</p>

But upon clicking any of these links, the following error appears:

Image

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions