Admindocs bookmarklets assume a single admin site
|Reported by:||MattBowen||Owned by:||Ben Spaulding|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In django.contrib.admindocs.views.bookmarklets, to generate the bookmarklets, the function assumes (in lines 34-35)
- Admin docs will be at admin/docs
- There is only one admin site
It uses these two assumptions to determine the urls of the admindocs and of the admin site for generating the URLs the bookmarklets need to communicate with the admin interface. Using named URLs from #7810 makes (1) easy to fix. That will only fix one bookmarklet (the one that goes to the documentation pages). (2) is a faulty assumption though; there can now be multiple admin sites.
From what I can tell, the bookmarklets page of the admindocs app needs to be rethought now that there can be multiple admin sites; it seems that each admin site needs its own bookmarklets.
Change History (11)
comment:1 Changed 8 years ago by
|Owner:||changed from nobody to Eric Holscher|
|Patch needs improvement:||unset|
|Status:||new → assigned|