Opened 6 years ago
Last modified 6 years ago
#31256 closed Uncategorized
Inline widget permision is now based on it's foregin key. — at Initial Version
| Reported by: | John Lyu | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | 2.1 |
| Severity: | Normal | Keywords: | Inlines, permision |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Use an old example:
in models.py
class Ticket(models.Model):
........
class Action(models.Model):
ticket = models.ForeignKey(Ticket)
........
in admin.py:
class ActionInline(admin.TabularInline):
model = Action
extra=1
max_num=3
class TicketAdmin(admin.ModelAdmin):
.........
inlines = [
ActionInline,
]
If I set current user's permisson edit_Action but no edit Ticket, I will not be able to edit actions inlines in "Change Ticket" page.
I think that is different with at least version 2.1.7 and is confusing.
Note:
See TracTickets
for help on using tickets.