~cjohnston/loco-team-portal/686271

« back to all changes in this revision

Viewing changes to loco_directory/teams/models.py

  • Committer: Michael Hall
  • Date: 2010-11-27 04:12:57 UTC
  • mfrom: (325.3.2 681981)
  • Revision ID: mhall119@gmail.com-20101127041257-czl6qm8or1y97vpj
Order countries alphabetically in forms, merge from Chris Johnston

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
class Continent(models.Model):
20
20
    name = models.TextField(_("Name"), max_length=50)
21
21
    
 
22
    class Meta:
 
23
        ordering = ('name',)
 
24
        
22
25
    def __unicode__(self):
23
26
        return u'%s' % (self.name)
24
27
 
38
41
    name = models.TextField(_("Name"), max_length=100)
39
42
    continents = models.ManyToManyField(Continent)
40
43
    
 
44
    class Meta:
 
45
        ordering = ('name',)
 
46
    
41
47
    def __unicode__(self):
42
48
        return u'%s' % (self.name)
43
49