Merge lp:~cjohnston/loco-team-portal/681981 into lp:loco-team-portal

Proposed by Chris Johnston
Status: Merged
Approved by: Michael Hall
Approved revision: 327
Merged at revision: 329
Proposed branch: lp:~cjohnston/loco-team-portal/681981
Merge into: lp:loco-team-portal
Diff against target: 37 lines (+9/-0)
2 files modified
loco_directory/teams/models.py (+6/-0)
loco_directory/userprofiles/models.py (+3/-0)
To merge this branch: bzr merge lp:~cjohnston/loco-team-portal/681981
Reviewer Review Type Date Requested Status
LoCo Team Portal Developers Pending
Review via email: mp+41990@code.launchpad.net
To post a comment you must log in.
327. By Chris Johnston

Merging in mhall119's fix

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/teams/models.py'
2--- loco_directory/teams/models.py 2010-09-30 11:17:29 +0000
3+++ loco_directory/teams/models.py 2010-11-27 03:54:25 +0000
4@@ -19,6 +19,9 @@
5 class Continent(models.Model):
6 name = models.TextField(_("Name"), max_length=50)
7
8+ class Meta:
9+ ordering = ('name',)
10+
11 def __unicode__(self):
12 return u'%s' % (self.name)
13
14@@ -38,6 +41,9 @@
15 name = models.TextField(_("Name"), max_length=100)
16 continents = models.ManyToManyField(Continent)
17
18+ class Meta:
19+ ordering = ('name',)
20+
21 def __unicode__(self):
22 return u'%s' % (self.name)
23
24
25=== modified file 'loco_directory/userprofiles/models.py'
26--- loco_directory/userprofiles/models.py 2010-11-19 04:23:16 +0000
27+++ loco_directory/userprofiles/models.py 2010-11-27 03:54:25 +0000
28@@ -22,6 +22,9 @@
29 aim = models.CharField(verbose_name=_('AOL IM Nick'), max_length=32, blank=True, null=True)
30 xmpp = models.CharField(verbose_name=_('XMPP IM Nick'), max_length=32, blank=True, null=True)
31
32+ class Meta:
33+ ordering = ('user__username',)
34+
35 def __unicode__(self):
36 try:
37 if self.realname:

Subscribers

People subscribed via source and target branches