@register.simple_tag
def subproject_name(prj, subprj):
 return escape(force_text(SubProject.objects.get(project__slug=prj, slug=subprj)))

@ register . simple_tag def subproject_name ( prj , subprj ) : return escape ( force_text ( SubProject . objects . get ( project__slug = prj , slug = subprj ) ) )
gets subproject name based on slug .