Commits

Andy Mikhailenko committed efe8b45

Partially replaced old pages with new apps (courses, departments, scholars).

Comments (0)

Files changed (2)

depts/departments/models.py

     history = TextField(blank=True)
 
     class Meta:
+        ordering = ('title',)
         verbose_name, verbose_name_plural = _('department'), _('departments')
 
     def get_absolute_url(self):

depts/departments/templates/department_list.html

 {% block content %}
     <ul>
     {% for object in object_list %}
-        <li><a href="{{ object.get_absolute_url }}">{{ object }}</a></li>
+        <li><a href="{{ object.get_absolute_url }}">{{ object|capfirst }}</a></li>
     {% endfor %}
     </ul>
 {% endblock %}