-
-
Notifications
You must be signed in to change notification settings - Fork 193
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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 workingSomething isn't working
Projects
Status
Todo