http://code.djangoproject.com/ticket/16015
I've uploaded a patch, but changed the status to 'Design Decision Needed' from 'Accepted.' The problem is that although my patch follows the existing convention and results in passing tests in Python 2.6, the Python core developers have made an important change to the way Decimal objects work -- they may now be instantiated with floats. This means that my patch introduces a failing test if Python 2.7 is being used. The patch: http://code.djangoproject.com/attachment/ticket/16015/16015_DecimalField_invalid_defaults.diff As I mentioned in the comment I just added to the ticket, the current "bug" is more pedantry than something that causes errors for real users. So, I leave it to the core devs to suggest an improved patch method or marking it wontfix. Thanks, Shawn -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
