Opened 8 years ago

Last modified 7 years ago

#17726 new Bug

Admin's Recent Actions broken for multiple admin site instances with unique registered models

Reported by: Steven MacLeod Owned by: nobody
Component: contrib.admin Version: 1.3
Severity: Normal Keywords: admin, multiple admin sites, recent actions
Cc: chipx86@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The Recent Actions list contains actions carried out from all admin site instances a user has access to. This causes problems when there exists a model which is not registered in all instances, and a User with access to multiple instances. If an action is carried out on this model it will appear in the recent list of all admin sites. If the model is not registered to an instance, the link generated will be invalid.


  • AdminSite1 has model Model1 registered
  • AdminSite2 does not have Model1 registered
  • User has access to both admin sites
  • User adds a Model1 in AdminSite1 (Action1)
  • User visits AdminSite2, and clicks the Action1 link
  • User is directed to an invalid URL (url for Model1 in AdminSite2)

Change History (5)

comment:1 Changed 8 years ago by Christian Hammond

Cc: chipx86@… added

comment:2 Changed 8 years ago by Aymeric Augustin

Type: UncategorizedBug

comment:3 Changed 8 years ago by Julien Phalip

Resolution: duplicate
Status: newclosed

Thanks for the report, however this is a duplicate of #9151, which was wontfixed. If you disagree with this resolution, please take this question to django-developers.

comment:4 Changed 8 years ago by Carl Meyer

Resolution: duplicate
Status: closedreopened
Triage Stage: UnreviewedAccepted

I don't believe this is actually a duplicate of #9151, though it is similar. #9151 is about django.contrib.sites; this ticket is about creating multiple instances of django.contrib.admin.Site. Despite the confusing naming, those are two completely separate things. And I don't think the wontfix reasoning applied in #9151 applies here; while there may be nothing about django.contrib.sites.models.Site that warrants special treatment in the admin, I think it's reasonable to expect that the admin's *own* multiple-admin-site feature won't break the admin's own recent-actions feature.


comment:5 Changed 7 years ago by Aymeric Augustin

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