Opened 14 years ago

Closed 14 years ago

#14393 closed (fixed)

'Add Another' link appears next to ForeignKey field when user has no permission.

Reported by: menollo Owned by: nobody
Component: contrib.admin Version: 1.2
Severity: Keywords: foreignkey admin add link
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When I have a model like this:

class A(models.Model):
    title = models.CharField(max_length=255)

class B(models.Model):
    title = models.CharField(max_length=255)
    a     = models.ForeignKey(A)

and the user has no permission to add instances of class A.
The 'Add Another' link is stil visible in the change form (admin) of class B. (on click it gives a permission denied page)

while in the admin homepage, the 'Add' link is not visible at all (for that user)... this seems inconsistent.

Change History (2)

comment:1 by anonymous, 14 years ago

milestone: 1.3
Version: SVN1.2

comment:2 by anonymous, 14 years ago

Resolution: fixed
Status: newclosed

Its fixed in the trunk, see this ticket #1035
and this changeset r13708

Note: See TracTickets for help on using tickets.
Back to Top