@register.simple_tag
def project_name(prj):
 return escape(force_text(Project.objects.get(slug=prj)))

@ register . simple_tag def project_name ( prj ) : return escape ( force_text ( Project . objects . get ( slug = prj ) ) )
gets project name based on slug .