Skip to content

Commit

Permalink
Monkey patch to fix Django 1.9+ translation issue referenced here: is…
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipperPA committed May 21, 2017
1 parent 4c0804e commit fab0dce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wagtailtinymce/rich_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def getDefaultArgs(cls):
'options': {
'browser_spellcheck': True,
'noneditable_leave_contenteditable': True,
'language': translation.to_locale(translation.get_language()),
'language': translation.to_locale(translation.get_language()) if \
translation.get_language() else None,
'language_load': True,
},
}
Expand Down

0 comments on commit fab0dce

Please sign in to comment.