Commit e8c78f8a authored by lvshibao's avatar lvshibao

group页面修改

parent fef0e2d9
......@@ -8,7 +8,7 @@ def get_team_names(city_id, country_id):
team_names = list()
if city_id and country_id:
team_names = Team.objects.filter(country_id=country_id).values_list('name')
elif city_id and country_id == '':
elif city_id and country_id is None:
city = Country.objects.filter(id=city_id).first()
if city.parent is None:
team_names = Team.objects.filter().values_list('name')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment