Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support unnamed entitygroups (fixes a regression)

  • Loading branch information...
commit 7dd8d4c41007464c598eba39cf1bf93dbf099acb 1 parent b21ca28
@cnorthwood cnorthwood authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 molly/utils/i18n.py
View
4 molly/utils/i18n.py
@@ -26,12 +26,12 @@ def name_in_language(obj, field, default=None):
return getattr(obj.names.get(language_code=language_code),
field)
except ObjectDoesNotExist:
- if default:
+ if default is not None:
return default
else:
raise
else:
- if default:
+ if default is not None:
return default
else:
raise
Please sign in to comment.
Something went wrong with that request. Please try again.