Skip to content

Django admin date_hierarchy linking is not working anymore #374

@jeroenpeters1986

Description

@jeroenpeters1986

Python version
3.11

Django version
5.0.2

Package version
0.28.5

Current behavior (bug description)
I am using the "date_hierarchy" (https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.date_hierarchy) function on a Django model. With version 0.28.5 I am getting this error when I click on the Year

TypeError at /nl/admin/budgie_bird/bird/
int() argument must be a string, a bytes-like object or a real number, not 'list'
Request Method:	GET
Request URL:	https://pybudgie.ddev.site/nl/admin/budgie_bird/bird/?date_of_birth__year=2020
Django Version:	5.0.2
Exception Type:	TypeError
Exception Value:	
int() argument must be a string, a bytes-like object or a real number, not 'list'
Exception Location:	/var/www/html/.ddev/.venv/lib/python3.11/site-packages/admin_interface/templatetags/admin_interface_tags.py, line 147, in admin_interface_date_hierarchy_removal_link
Raised during:	django.contrib.admin.options.changelist_view

Expected behavior
It seems that the received params have changes and are now a list instead of the string from the URL

I will submit a PR, I am not sure if this is because of Django5 or earlier

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy