mirror of
https://github.com/django/django.git
synced 2025-01-08 17:37:20 +00:00
Fixed #5071 -- Fixed 'global name ugettext is not defined' error in django.core.validators. Thanks, Marco Bonetti
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
56a75a2a4e
commit
3c733bb690
@ -442,7 +442,7 @@ def isValidFloat(field_data, all_data):
|
||||
try:
|
||||
float(data)
|
||||
except ValueError:
|
||||
raise ValidationError, ugettext("Please enter a valid floating point number.")
|
||||
raise ValidationError, _("Please enter a valid floating point number.")
|
||||
|
||||
class HasAllowableSize(object):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user