#31256: Inline widget permision is now based on it's foregin key.
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
PaleNeutron |
Type: | Status: new
Uncategorized |
Component: | Version: 3.0
Uncategorized |
Severity: Normal | Keywords: Inlines, permision
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/31256>
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/054.507a7364be49237be3dc802a1a26e83a%40djangoproject.com.