Merge lp:~daker/loco-team-portal/fix.1293258 into lp:loco-team-portal

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Adnane Belmadiaf
Approved revision: 676
Merged at revision: 678
Proposed branch: lp:~daker/loco-team-portal/fix.1293258
Merge into: lp:loco-team-portal
Diff against target: 12 lines (+1/-1)
1 file modified
loco_directory/teams/views.py (+1/-1)
To merge this branch: bzr merge lp:~daker/loco-team-portal/fix.1293258
Reviewer Review Type Date Requested Status
Michael Hall (community) Approve
Review via email: mp+214529@code.launchpad.net

Commit message

Only show active teams

To post a comment you must log in.
676. By Adnane Belmadiaf

Only show active teams

Revision history for this message
Michael Hall (mhall119) wrote :

LGTM

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/views.py'
2--- loco_directory/teams/views.py 2014-01-12 19:22:24 +0000
3+++ loco_directory/teams/views.py 2014-04-07 13:19:21 +0000
4@@ -213,7 +213,7 @@
5 def team_detail(request, team_slug):
6 if team_slug == 'ubuntu-lococouncil':
7 return redirect('/loco-council/')
8- team_object = get_object_or_404(Team, lp_name=team_slug)
9+ team_object = get_object_or_404(Team, lp_name=team_slug, active=True)
10 articles = Article.objects.filter(source__team=team_object)[:5]
11 is_member = False
12 is_admin = False

Subscribers

People subscribed via source and target branches