Last active
October 21, 2016 11:11
-
-
Save Geekfish/152c52bd66d4b3a73bdd50adf237e8aa to your computer and use it in GitHub Desktop.
Django Lazy translation format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.utils.functional import allow_lazy | |
def _lazy_format(lazy_text, format_params): | |
return lazy_text % format_params | |
lazy_format = allow_lazy(_lazy_format, unicode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment