DisallowedModelAdminLookup

Hi there!
In Django 1-st/ the Admin Site / 8 - Providing links I have this Error: DisallowedModelAdminLookup at /admin/store/product/. Looks like something wrong with this lookup template or maybe not? :
?collection__id=3

django = “5.0.1”
python_version = “3.11”
Windows 11

Did someone had this problem?

This code works with one condition: add list_filter to the ProductAdmin class first

1 Like

This is for security reasons so you have to use modelAdmin option that allows you to filter the model.

list_filter = [‘collection__id’]