Is there any way to get the model name of any objects in django templates. Manually, we can try it by defining methods in models or using template tags... But is there any b
You can very easily access the content type of the page, this way you don't even need to poke into the specific:
specific
{% if pub.content_type.app_labeled_name == 'home | publication' %} {% include "home/publication.html" with pub=pub.specific %} {% endif %}