예제 #1
0
파일: views.py 프로젝트: thurloat/results
def show_athletes_country_crew(request, country, crewNum):
    selectedCountry = Country.gql("WHERE code = :cc", cc=country).get()
    return UA_object_detail(request,Crew.all(),slug_field="crewNum",slug=long(crewNum), template_name="mobile-bioCrew.html", template_object_name = "crew", extra_context={'country':selectedCountry})
예제 #2
0
파일: views.py 프로젝트: thurloat/results
def show_athletes_all_country(request, country):
    countryQ = Country.gql("WHERE code = :cc", cc=country)
    selectedCountry = countryQ.get()
    data = UA_object_list(request,Athlete.all().filter("country =",selectedCountry), template_name="mobile-bioAthleteList.html", extra_context={'country':selectedCountry})
    return data