#33171: Invalid link for readonly fields in django admin with missing 
permissions
-----------------------------------------+------------------------
               Reporter:  Ron            |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  contrib.admin  |        Version:  3.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 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

 Here is a link to a screenie: https://i.stack.imgur.com/tDsMy.png

 What I need:

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

 The problem exists for the regular admin and as well for inlines.

 I created repo to reproduce the problem:

 https://github.com/GitRon/django_admin_readonly_link_field

 I hope I presented as much support as possible. I looked at the code but
 the request is not even near the method determining if a link or a plain
 text is to be shown. So I created this ticket.

 Best regards
 Ronny

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33171>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.075e97956a950fe1305cde2ab7ad121d%40djangoproject.com.

Reply via email to