1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

gis: Made necessary modifications for unicode, manage refactor, backend refactor and merged 5584-6000 via svnmerge from [repos:django/trunk trunk].

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn
2007-08-26 01:10:53 +00:00
parent a7297a255f
commit 2052b508eb
405 changed files with 29980 additions and 17232 deletions

View File

@@ -0,0 +1,18 @@
"""
>>> from django.db.models.fields import *
# DecimalField
>>> f = DecimalField()
>>> f.to_python(3)
Decimal("3")
>>> f.to_python("3.14")
Decimal("3.14")
>>> f.to_python("abc")
Traceback (most recent call last):
...
ValidationError: [u'This value must be a decimal number.']
"""