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:
parent
603d5cc05a
commit
9a40cfda16
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue