#10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal  " when 
the
decimal module has been reloaded
---------------------------------------------------+------------------------
          Reporter:  gagravarr                     |         Owner:  nobody
            Status:  new                           |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  1.0   
        Resolution:                                |      Keywords:        
             Stage:  Unreviewed                    |     Has_patch:  1     
        Needs_docs:  0                             |   Needs_tests:  0     
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by lukeplant):

 If you could reproduce the error using a reload() statement in a test
 (probably put it in regressiontests/model_fields/tests.py), that would be
 great.  After that we could decide on a fix.  The fix above is probably
 OK.  I'd really like to know why 'decimal' is being reloaded, but given
 that this is causing genuine problems for people, it's better to fix it
 than leave it until we know the root cause.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10933#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to