#29414 closed Bug (fixed)
Inlines with no edit permission should still allow users to add new objects
Reported by: | Paulo | Owned by: | Paulo |
---|---|---|---|
Component: | contrib.admin | Version: | 2.1 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I think a regression was introduced in https://github.com/django/django/pull/6734/files#diff-43474443052641e2941ca9fd04138c6bR247
where it overrides self.readonly_fields with all fields if the inline has no edit permission.
This results in a strange form:
Change History (4)
comment:1 by , 7 years ago
comment:2 by , 6 years ago
Component: | Uncategorized → contrib.admin |
---|---|
Has patch: | set |
Severity: | Normal → Release blocker |
Triage Stage: | Unreviewed → Ready for checkin |
Type: | Uncategorized → Bug |
Version: | 2.0 → 2.1 |
Note:
See TracTickets
for help on using tickets.
PR: https://github.com/django/django/pull/9963