~ltp-devs/loco-team-portal/production

« back to all changes in this revision

Viewing changes to loco_directory/teams/views.py

  • Committer: Michael Hall
  • Date: 2011-08-31 17:03:31 UTC
  • mfrom: (60.207.81 trunk)
  • Revision ID: mhall119@ubuntu.com-20110831170331-6wteqrqndaff1o59
Upgrade to 0.3.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    return response
66
66
 
67
67
def team_list(request):
68
 
    
 
68
    continents = Continent.objects.all().order_by('name')
 
69
    for continent in continents:
 
70
        continent.continent_related_teams = continent.related_teams
 
71
 
 
72
    all_countries_without_continent = countries_without_continent().order_by('name')
 
73
    for country in all_countries_without_continent:
 
74
        country.country_without_continent_related_teams = country.related_teams
 
75
 
69
76
    context = {
70
 
        'continents': Continent.objects.all().order_by('name'),
71
 
        'countries_without_continent': countries_without_continent().order_by('name'),
 
77
        'continents': continents,
 
78
        'countries_without_continent': all_countries_without_continent,
72
79
        'countries_without_continent_have_teams': countries_without_continent_have_teams(),
73
80
        'teams_without_country': teams_without_country().order_by('name'),
74
81
        'colcycle' : simple_iterator('col_left', 'col_right'),