X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/ed6b9876b7abff0b2dc6266d6f769c319f358a9c..54d1617957cfa3a8c9ffd714ad6c4bef09e727de:/philo/validators.py?ds=sidebyside diff --git a/philo/validators.py b/philo/validators.py index c8e5dc9..144699e 100644 --- a/philo/validators.py +++ b/philo/validators.py @@ -1,10 +1,12 @@ -from django.utils.translation import ugettext_lazy as _ -from django.core.validators import RegexValidator +import re + from django.core.exceptions import ValidationError +from django.core.validators import RegexValidator from django.template import Template, Parser, Lexer, TOKEN_BLOCK, TOKEN_VAR, TemplateSyntaxError from django.utils import simplejson as json from django.utils.html import escape, mark_safe -import re +from django.utils.translation import ugettext_lazy as _ + from philo.utils import LOADED_TEMPLATE_ATTR