Merge lp:~mhall119/loco-team-portal/601947 into lp:~dholbach/loco-team-portal/601947

Proposed by Michael Hall
Status: Merged
Merged at revision: 190
Proposed branch: lp:~mhall119/loco-team-portal/601947
Merge into: lp:~dholbach/loco-team-portal/601947
Diff against target: 25 lines (+3/-1)
2 files modified
loco_directory/teams/models.py (+2/-0)
loco_directory/teams/views.py (+1/-1)
To merge this branch: bzr merge lp:~mhall119/loco-team-portal/601947
Reviewer Review Type Date Requested Status
Daniel Holbach Approve
Review via email: mp+29988@code.launchpad.net

Description of the change

Set default alphabetic ordering of languages, add language name to searched fields on team list

To post a comment you must log in.
lp:~mhall119/loco-team-portal/601947 updated
190. By Michael Hall <mhall@mhall-laptop>

Fixed typo, due to spending too much time in Javascript lately

Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work - thanks!

review: Approve

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-07-09 10:56:40 +0000
3+++ loco_directory/teams/models.py 2010-07-15 13:47:39 +0000
4@@ -2,6 +2,8 @@
5 from django.utils.translation import ugettext_lazy as _
6
7 class Language(models.Model):
8+ class Meta:
9+ ordering = ('name',)
10 name = models.CharField(_("Language"), max_length=150, null=True)
11
12 def __unicode__(self):
13
14=== modified file 'loco_directory/teams/views.py'
15--- loco_directory/teams/views.py 2010-06-04 14:27:35 +0000
16+++ loco_directory/teams/views.py 2010-07-15 13:47:39 +0000
17@@ -49,7 +49,7 @@
18 if form.is_valid():
19 if form.cleaned_data['q']:
20 q = form.cleaned_data['q']
21- team_list = team_list.filter(Q(name__icontains=q) | Q(countries__name__icontains=q) | Q(city__icontains=q))
22+ team_list = team_list.filter(Q(name__icontains=q) | Q(countries__name__icontains=q) | Q(city__icontains=q) | Q(languages__name__icontains=q))
23
24 context = {
25 'team_list': team_list,

Subscribers

People subscribed via source and target branches

to all changes: