Django

Code

Ticket #4445 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

DecimalField does not work in Python 2.3 due to bad import

Reported by: Bryan Chow <bryan at verdjn dot com> Assigned to: adrian
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

oldforms/__init__.py incorrectly attempts to fall back on django.utils.decimal in Python 2.3 instead of django.utils._decimal, resulting in ImportError.

Simple patch is attached.

Attachments

python2.3-decimal.diff (499 bytes) - added by Bryan Chow <bryan at verdjn dot com> on 05/31/07 13:32:57.
Patch to resolve ImportError? in Python 2.3

Change History

05/31/07 13:32:57 changed by Bryan Chow <bryan at verdjn dot com>

  • attachment python2.3-decimal.diff added.

Patch to resolve ImportError? in Python 2.3

05/31/07 16:08:43 changed by SmileyChris

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

05/31/07 20:44:48 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5398]) Fixed #4445 -- Fixed an import problem in one of the Python 2.3-only code paths. Thanks, Bryan Chow.


Add/Change #4445 (DecimalField does not work in Python 2.3 due to bad import)




Change Properties
Action