Order topic names in the 'suggest session' dialog

Add proper ordering in topic names so that the 'suggest session' dialog
looks less funky.

Change-Id: Ia531336e4528c43549dca027f8a499314cc72bdd
This commit is contained in:
Thierry Carrez 2013-08-30 12:38:41 +02:00
parent cecd79f1c5
commit 58bece86ac
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ class Topic(models.Model):
lead_username = models.CharField(max_length=40)
description = models.TextField(blank=True)
class Meta:
ordering = ['name']
def __unicode__(self):
return self.name