django admin renders links on readonly foreign key to which I don't have permission

Viewed 182

I am using the latest django version (3.2.8) and I have the following problem:

  1. My user can see model "inspection" via permisson "view_inspection"
  2. My user cannot (!) see any foreign keys due to missing permissions
  3. The readonly-foreign key is still rendered as a link which leads to a 403 page

What I need:

  • Showing just the name of the object and not linking to it.

enter image description here

Any ideas how I can fix this? Looks like a bug somehow... Googleing and browsing stack overflow didn't return any solutions.

Thx in advance!

0 Answers
Related