Commit 56cee779 authored by lvshibao's avatar lvshibao

group页面修改

parent 4d073bb0
......@@ -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 is None:
elif city_id and (country_id is None or country_id == ''):
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