Fixed #4445 -- Fixed an import problem in one of the Python 2.3-only code

paths. Thanks, Bryan Chow.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-06-01 01:44:47 +00:00
parent 603d5cc05a
commit 9a40cfda16
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ class DecimalField(TextField):
try:
import decimal
except ImportError:
from django.utils import decimal
from django.utils import _decimal as decimal
try:
return decimal.Decimal(data)
except decimal.InvalidOperation, e: