Created
July 29, 2014 15:10
-
-
Save piotch/d66a86d97ff23204134d to your computer and use it in GitHub Desktop.
Django: mark safe lazy
This file contains 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 import six # Python 3 compatibility | |
from django.utils.functional import lazy | |
from django.utils.safestring import mark_safe | |
from django.utils.translation import ugettext_lazy as _ | |
mark_safe_lazy = lazy(mark_safe, six.text_type) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment