Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Upendo authored and Paul Upendo committed Apr 28, 2017
1 parent 5cb16db commit fc9728e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wger/utils/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def load_language(language_code=None):
return language

try:
language = Language.objects.get(short_name=used_language)
language, is_created = Language.objects.get_or_create(short_name=used_language)
# language = Language.objects.get(short_name=used_language)

except ObjectDoesNotExist:
# No luck, load english as our fall-back language
language = Language.objects.get(short_name="en")
Expand Down

0 comments on commit fc9728e

Please sign in to comment.