Opened 5 years ago

Last modified 5 years ago

#31256 closed Uncategorized

Inline widget permision is now based on it's foregin key. — at Version 2

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 (last modified by John Lyu)

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,
        ]

In version 2.2.10 or 3.0.3:

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.

Change History (2)

comment:1 by John Lyu, 5 years ago

Description: modified (diff)
Version: 3.02.2

comment:2 by John Lyu, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top