@@ -0,0 +1,775 @@
+from django import template%0Afrom django.db import models%0Afrom django.utils.safestring import mark_safe%0A%0A%0Aregister = template.Library()%0A%0A%0A@register.filter%0Adef model_row(instance, fields):%0A    for name in fields.split(','):%0A        f = instance._meta.get_field(name)%0A%0A        if isinstance(f, models.ForeignKey):%0A            fk = getattr(instance, f.name)%0A            if hasattr(fk, 'get_absolute_url'):%0A                value = u'%3Ca href=%22%25s%22%3E%25s%3C/a%3E' %25 (%0A                    fk.get_absolute_url(),%0A                    fk)%0A            else:%0A                value = unicode(fk)%0A%0A        elif f.choices:%0A            value = getattr(instance, 'get_%25s_display' %25 f.name)()%0A%0A        else:%0A            value = unicode(getattr(instance, f.name))%0A%0A        yield (f.verbose_name, value)%0A

Add simple model_row template filter