mirror of
https://github.com/django/django.git
synced 2025-09-27 20:49:21 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ class DecimalField(TextField):
|
||||||
try:
|
try:
|
||||||
import decimal
|
import decimal
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from django.utils import decimal
|
from django.utils import _decimal as decimal
|
||||||
try:
|
try:
|
||||||
return decimal.Decimal(data)
|
return decimal.Decimal(data)
|
||||||
except decimal.InvalidOperation, e:
|
except decimal.InvalidOperation, e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue