We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b483c7a commit bf05c16Copy full SHA for bf05c16
user_sessions/templatetags/user_sessions.py
@@ -105,7 +105,7 @@ def location(value):
105
warnings.warn(str(e))
106
location = None
107
if location and location['country_name']:
108
- if 'city' in location:
+ if 'city' in location and location['city']:
109
return '{}, {}'.format(location['city'], location['country_name'])
110
return location['country_name']
111
return None
0 commit comments