root_path in admin is incorrect when "include(admin.site.urls)" is used
|Reported by:||powerfox||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When I use include(admin.site.urls) root_path is 'admin/' (it's set in init() of AdminSite). So I get wrong links.
I've noticed it's set only in admin_root (and it will be set to '/admin/' in my case), thus when I use deprecated "r'admin/(.*)', gk_admin_site.root" everything is fine.
Comments in the code say, that root_path and root shouldn't be used, but it's still used in admin templates for links like "Log out", "Change password".