cities ordering
This commit is contained in:
parent
0889ad3044
commit
fe745429ee
|
@ -273,6 +273,9 @@ class City(models.Model):
|
||||||
name = models.CharField(max_length=255)
|
name = models.CharField(max_length=255)
|
||||||
state = models.CharField(choices = STATE_CHOICES, max_length=255)
|
state = models.CharField(choices = STATE_CHOICES, max_length=255)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ['name']
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user