#29927: ModelAdmin.exclude ignored when generating readonly view
-------------------------------+--------------------------------------
Reporter: Ben Cole | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution: worksforme
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => worksforme
Comment:
Hi Ben,
I can't reproduce this in my test project:
I have an admin + a view-only user for that admin. All fields are shown as
read-only. I add one field to `exclude`. It is no-longer shown.
That's what I'm expecting.
Can you perhaps provide a test project with your exact setup, as there's
obviously some difference. (Or even better add a test case to the test
suite showing the bad behaviour if that's possible.)
Happy to re-open if we can reproduce.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/29927#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.490382a5d738aff405dfbedd3ac84966%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.