You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 3.1.0, this hardcoded URL name was added to the detail_info.html template. However, the actual URL name is generated like this, which means that if one replaces the image model (with a name other than Image) as described here, the hardcoded URL name in the template no longer matches the actual URL name, leading to reverse errors like this:
Django's admin_urlname filter could probably be used in the template to generate the URL name dynamically, but would require that the app label part of the URL name is also dynamic (and not hardcoded to "filer").
The text was updated successfully, but these errors were encountered:
W1ldPo1nter
changed the title
detail_info.html is incompatible with custom Image models
detail_info.html template is incompatible with custom Image models
Mar 15, 2024
@W1ldPo1nter
What would you think about supplying the expand view url in the context? Would you be interested in creating a PR to fix this?
Excellent bug description, btw! Thank you!
In version 3.1.0, this hardcoded URL name was added to the
![image](https://private-user-images.githubusercontent.com/46226874/313124005-87834348-3a9a-4ed3-aaa8-fcf686e69a76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDA5NzQsIm5iZiI6MTczOTY0MDY3NCwicGF0aCI6Ii80NjIyNjg3NC8zMTMxMjQwMDUtODc4MzQzNDgtM2E5YS00ZWQzLWFhYTgtZmNmNjg2ZTY5YTc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE3MzExNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjYWYzYzU1YzEwOTc2YmQwODQwNWJkMmY2YTFjNzA1MjUyNDc2ZDhkNTA5NzMzNDQzOWI3YzdjMDhkNGM1M2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.01oCOsRNeDcMc8iwbuJJywb2WCTmebcqib7mwNg-1yU)
detail_info.html
template. However, the actual URL name is generated like this, which means that if one replaces the image model (with a name other thanImage
) as described here, the hardcoded URL name in the template no longer matches the actual URL name, leading to reverse errors like this:Django's
admin_urlname
filter could probably be used in the template to generate the URL name dynamically, but would require that the app label part of the URL name is also dynamic (and not hardcoded to "filer").The text was updated successfully, but these errors were encountered: