Nicer urls for groups
[xnet] / xnet / templates / groups / index.html
index 9d3cd59..f12fc08 100644 (file)
@@ -24,7 +24,7 @@
     <input type="text" class="search-field input-block-level" data-target="{{ group.grouper }}_type" />
     <ul class="unstyled">
         {% for item in group.list %}
-          <li><a href="{% url 'accounts:group-home' item.pk %}">{{ item }}</a></li>
+          <li><a href="{% url 'accounts:group-home' item.short %}">{{ item }}</a></li>
         {% endfor %}
     </ul>
 </div>