order languages by name

This commit is contained in:
Sanjay B 2014-06-11 11:20:17 +05:30
parent 9fa4237708
commit 121662a1ab

View File

@ -275,7 +275,7 @@ class City(models.Model):
class Meta: class Meta:
ordering = ['name'] ordering = ['name']
def __unicode__(self): def __unicode__(self):
return self.name return self.name
@ -587,6 +587,9 @@ class Language(models.Model):
code = models.CharField(max_length=3, db_index=True) code = models.CharField(max_length=3, db_index=True)
name = models.CharField(max_length=255) name = models.CharField(max_length=255)
class Meta:
ordering = ['name']
def __unicode__(self): def __unicode__(self):
return self.name return self.name