Browse files

Fixed #2727 -- Fixed problem with serialising error messages from va…


Thanks, Ivan Saglaev.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
malcolmt committed Sep 24, 2006
1 parent a6a4e9b commit e0cec60a143cedaf99c781bad284ec3d794a956b
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/forms/
@@ -2,7 +2,7 @@
from django.core.exceptions import PermissionDenied
from django.utils.html import escape
from django.conf import settings
-from django.utils.translation import gettext, gettext_lazy, ngettext
+from django.utils.translation import gettext, ngettext
@@ -343,7 +343,7 @@ def run_validator(self, new_data, validator):
def get_validation_errors(self, new_data):
errors = {}
if self.is_required and not new_data.get(self.field_name, False):
- errors.setdefault(self.field_name, []).append(gettext_lazy('This field is required.'))
+ errors.setdefault(self.field_name, []).append(gettext('This field is required.'))
return errors
for validator in self.validator_list:

0 comments on commit e0cec60

Please sign in to comment.