More work on other model support

This commit is contained in:
David Taylor
2015-05-23 16:49:54 +01:00
parent 6ab0715376
commit 3ed95d6687
7 changed files with 98 additions and 85 deletions

View File

@@ -0,0 +1,4 @@
{% load to_class_name from filters %}
{# pass in variable "object" to this template #}
<a title="{{object|to_class_name}} {{ object.pk|stringformat:"05d" }} | {{object.name}}" type="button" href="{{ object.get_absolute_url }}" class="btn btn-default btn-xs">{{object|to_class_name}} {{ object.pk|stringformat:"05d" }}</a>