from django.db import models
from django.utils.translation import ugettext_lazy as _
{%% for model_name, props in all_models.iteritems() %%}
{%% set model_name = model_name|capitalize %%}
class {{{ model_name }}}(models.Model):
    {%% for prop, value in props.iteritems() %%}
    {{{ prop }}} = {{{ value|model_field }}}{%% endfor %%}

    def __unicode__(self):
        fields = [{%% for prop, value in props.iteritems() %%}'{{{ prop }}}', {%% endfor %%}]
        return unicode('{%% for prop, value in props.iteritems() %%}<{}>, {%% endfor %%}'.format(*fields))
{%% endfor %%}

from django.db import models
from django.utils.translation import ugettext_lazy as _
{%% for model_name, props in all_models.iteritems() %%}
{%% set model_name = model_name|capitalize %%}
class {{{ model_name }}}(models.Model):
    {%% for prop, value in props.iteritems() %%}
    {{{ prop }}} = {{{ value|model_field }}}{%% endfor %%}

    def __unicode__(self):
        fields = [{%% for prop, value in props.iteritems() %%}'{{{ prop }}}', {%% endfor %%}]
        return unicode('<{%% for prop, value in props.iteritems() %%}{}.{%% endfor %%}>'.format(*fields))
{%% endfor %%}

Change string representation for django model