I have a class with a "site" field that uses choices
I want to display the human readable name for it when being used as a
grouper

i thought something like
site.get_grouper_display or get_site.grouper_display

but that doesn't work

here is the template code

{% regroup object_list|dictsort:"group" by group as sites %}
<ul>
{% for site in sites %}
        <li><h3>{{ site.grouper }}</h3></li>
        <ul>
        {% for buddy in site.list %}
                <li><a href="/buddy/{{ buddy.name|lower}}/">{{ buddy.alias
}}</a></li>
        {% endfor %}
        </ul>
{% endfor %}
</ul>

is there a way to do it?

Thanks,

Sam


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to