Greetings of the day,

I was working with templates for the admin site of Django. I added some 
HTML elements to the *nav-global* block of the *admin/base.html* 
<https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/base.html>
 template, 
but surprisingly they did not show up on the final render page. Upon deeper 
inspection using *django-debug-toolbar*, I realized that the 
admin/base_site.html 
<https://github.com/django/django/blame/master/django/contrib/admin/templates/admin/base_site.html>
 template 
extends *admin/base.html* and overrides the *nav-global* block without 
adding anything to it.

In my opinion, *admin/base_site.html* should inherit the *nav-global* block 
of *admin/base.html* instead of overriding it. I wanted to discuss it 
before going ahead to open a ticket for this. I tried to find a reason for 
adopting the current implementation, but couldn't find anything even by *git 
blame.*

Best, 
Gagan Deep



-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/92c800a9-3b7b-4457-9e21-25976735cffcn%40googlegroups.com.

Reply via email to