Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2015-07-29 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   |  worksforme
 Keywords:  dceu2011 | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 As noted in comment 25, I think this is probably related to incorrect
 server configuration. If it's still an issue, we need much more specific
 information about how to reproduce it.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.8c3d3a8f6996a9cde700cf7fc024e3da%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2014-03-17 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by warnes):

 Replying to [comment:28 anonymous]:

 Wasn't logged-in when I posted.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.70a902d743b6adba5c1e724248609310%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2014-03-17 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 I have also been having problems with this bug.

 Apache/2.2.22 (Ubuntu)
 Apache  wsgi module 2.7
 Python 2.7.3
 Django 1.6

 My solution is to 'monkey-patch' the DecimalField class in the models.py
 file where I use it:
 {{{
 import decimal
 from django.db import models

 
 ## Patch problem with Decimal field
 

 def to_python(self, value):
 if value is None:
 return value
 try:
 return decimal.Decimal(str(value))
 except decimal.InvalidOperation:
 raise exceptions.ValidationError(
 self.error_messages['invalid'],
 code='invalid',
 params={'value': value},
 )

 models.DecimalField.to_python = to_python
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.cca4777814fb3fca35f2d2e92052e084%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2014-02-13 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 I found this bug in Django 1.6.1, using runserver and sqlite3.

 The model is:

 {{{
 class Car(models.Model):
   price = models.DecimalField(max_digits=7, decimal_places=2)
   maker = models.ForeignKey(CarMaker, null=True, blank=True,
 related_name="%(app_label)s_%(class)s_result")
 }}}

 And the piece of code that raised the exception:

 {{{
 try:
   car1.maker = maker1
   car1.save()
 except:
   # manage error
 }}}

 It raised:

 {{{
 Cannot convert Decimal('3.03') to Decimal
 }}}

 Can provide the whole traceback if needed.

 Can someone change the bug version to 1.6?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.b481f370efba833406482e6731dadcc3%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2013-05-06 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 Appendum to above:
 1.  Running small office server
 2.  Using sqlite3 database
 3.  Exception raised by saving models (as above) and model methods as so:
 {{{
 class Item(models.Model):
 def amount(self):
 return foo # A decimal

 class Purchase(models.Models):
 def tax(self):
 return item.amount*Decimal('0.1')
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2013-05-06 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 Was getting following error twice a day running django 1.4.5,
 libapache_mod_wsgi 3.3, apache 2.2.22, python 2.7.3 on Debian 7.0:

 {{{
 [..]
   File "/usr/lib/python2.7/dist-
 packages/django/db/models/fields/__init__.py", line 847, in to_python
 return decimal.Decimal(value)

   File "/usr/lib/python2.7/decimal.py", line 658, in __new__
 raise TypeError("Cannot convert %r to Decimal" % value)

 TypeError: Cannot convert Decimal('18') to Decimal
 }}}

 with the following WSGI request parameters:

 {{{
  'mod_wsgi.application_group': 'hostname|',
  'mod_wsgi.callable_object': 'application',
  'mod_wsgi.handler_script': '',
  'mod_wsgi.input_chunked': '0',
  'mod_wsgi.listener_host': '',
  'mod_wsgi.listener_port': '80',
  'mod_wsgi.process_group': '',
  'mod_wsgi.request_handler': 'wsgi-script',
  'mod_wsgi.script_reloading': '1',
  'mod_wsgi.version': (3, 3),
  'wsgi.errors': ,
  'wsgi.file_wrapper': ,
  'wsgi.input': ,
  'wsgi.multiprocess': True,
  'wsgi.multithread': False,
  'wsgi.run_once': False,
  'wsgi.url_scheme': 'http',
  'wsgi.version': (1, 1)}>
 }}}

 First change to virtual host config:

 {{{
 
 ...
  ServerName servername
  WSGIScriptAlias / /path/to/wsgi.py
 +WGSIDaemonProcess servername
 +WSGIProcessGroup servername
 
 ...
 }}}

 Next day same decimal reloading error. WSGI request parameters:
 {{{
 ...
  'mod_wsgi.application_group': 'hostname|',
  'mod_wsgi.callable_object': 'application',
  'mod_wsgi.handler_script': '',
  'mod_wsgi.input_chunked': '0',
  'mod_wsgi.listener_host': '',
  'mod_wsgi.listener_port': '80',
  'mod_wsgi.process_group': 'servername',
  'mod_wsgi.request_handler': 'wsgi-script',
  'mod_wsgi.script_reloading': '1',
  'mod_wsgi.version': (3, 3),
  'wsgi.errors': ,
  'wsgi.file_wrapper': ,
  'wsgi.input': ,
  'wsgi.multiprocess': False,
  'wsgi.multithread': True,
  'wsgi.run_once': False,
  'wsgi.url_scheme': 'http',
  'wsgi.version': (1, 1)}>
 }}}

 Second change to apache config:

 {{{
 
 ...
  ServerName servername
 -WSGIScriptAlias / /path/to/wsgi.py
 +WSGIScriptAlias / /path/to/wsgi.py process-group=servername
 application-group=%{GLOBAL}
  WSGIDaemonProcess servername
 -WSGIProcessGroup servername
 +WSGIScriptReloading Off
 ...
 
 }}}

 which seems to be in a similar vein to the docs
 https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/modwsgi
 /#using-mod-wsgi-daemon-mode

 No errors for a month now, current WSGI request parameters.
 {{{
 ...
  'mod_wsgi.application_group': '',
  'mod_wsgi.callable_object': 'application',
  'mod_wsgi.handler_script': '',
  'mod_wsgi.input_chunked': '0',
  'mod_wsgi.listener_host': '',
  'mod_wsgi.listener_port': '80',
  'mod_wsgi.process_group': 'servername',
  'mod_wsgi.request_handler': 'wsgi-script',
  'mod_wsgi.script_reloading': '0',
  'mod_wsgi.version': (3, 3),
  'wsgi.errors': ,
  'wsgi.file_wrapper': ,
  'wsgi.input': ,
  'wsgi.multiprocess': False,
  'wsgi.multithread': True,
  'wsgi.run_once': False,
  'wsgi.url_scheme': 'http',
  'wsgi.version': (1, 1)}>
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-12-19 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 One more data point: I'm also getting this using apache and django 1.4.3

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-12-14 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by MaDeuce):

 * cc: MaDeuce (added)


Comment:

 Replying to [comment:22 jonaskoelker]:
 >
 
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters
 explicitly mentions decimal.Decimal in the context of psycopg2.  I'm
 experiencing this problem using sqlite3 as my database, so it's obviously
 not limited to PostgreSQL.  I think this explains why the
 workaround/solution in comment:15 works.  HTH :-)

 Like jonaskoelker, I'm using sqlite3 with Django 1.3, mod_wsgi 3.3, and
 have the problem.  Unfortunately, modifying my httpd.conf to align with
 that of comment:15 does not make the problem go away.  I will try the
 patch offered in comment:18, as I'm out of other ideas.  However, since I
 don't understand what is causing mod_wsgi to reload Decimal in the first
 place, I don't have much confidence that it will resolve my specific
 problem (even though it may indeed resolve the psycopg2 problem).  If
 someone could offer pointers as to how to track down the root cause of the
 reload, I'd be highly appreciative.  I can only reproduce after about an
 hour of intense load on a production system, so it's difficult to conduct
 experiments.  I'm also a little concerned that the fix of comment:18 is
 1.5 years old and (AFAICT) has not been incorporated into the Django code
 base; are there any negative side-effects?

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-11-15 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by jonaskoelker):

 
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters
 explicitly mentions decimal.Decimal in the context of psycopg2.  I'm
 experiencing this problem using sqlite3 as my database, so it's obviously
 not limited to PostgreSQL.  I think this explains why the
 workaround/solution in comment:15 works.  HTH :-)

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-11-08 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by jonaskoelker):

 * cc: jonaskoelker (added)


-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-03-19 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by maersu):

 * cc: me@… (added)


-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-03-19 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by maersu):

 I confirm this bug with django 1.3, ngnix, uwsgi, Python 2.6. Reloading
 uwsgi solves the problem (which is of course not a proper solution)
 The bug is not reproducible and occurs rarely. Its really hard to debug
 ...

 (System: Ubuntu 10.04.2 LTS i686)

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-02-12 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 I can confirm this bug on Django 1.3 on Apache + mod_wsgi. I have tried
 applying adrian's patch. As I can't reproduce the error, I just get them
 emailed to me occasionally, I cannot yet confirm that it works.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2012-01-16 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by pauldwaite):

 I’ve also seen this bug (specifically when rendering Decimal values via a
 custom template tag).

 I’m utterly mystified as to how I’m seeing it though, because it’s on a
 site that I run on a virtual private server, the disk image for which is a
 copy of a VMWare virtual machine that I run on my laptop to test the site.
 This bug only happens on the live environment, and not on my laptop, even
 though both are running from the same original disk image.

 I presume I must have changed *something* on the live disk image, but I
 don’t recall doing so (I’m reasonably careful about that).

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-11-10 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
 Reporter:  gagravarr|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.3
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  dceu2011 |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  1|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 Replying to [comment:12 adrian.boczkowski@…]:
 > This problem also occurs with Django 1.3 on Apache + mod_wsgi. I fix it
 by changing (sorry, I can't make .diff file):
 > {{{
 > try:
 >  return decimal.Decimal(value)
 > }}}
 >
 > to:
 >
 > {{{
 > try:
 >  return decimal.Decimal(str(value))
 > }}}
 >
 > I know it's rather ugly workaround than beautiful fix ;-), but it seems
 to work fine.

 Hi Adrian,
 Just asking on where you applied this fix?

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-09-23 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  1.3|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:  dceu2011
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  0  |Needs tests:  1
  UI/UX:  0  |  Easy pickings:  0
-+-

Comment (by ejohnstone@…):

 Here's the approach I am taking, now, that seems to be working.  First
 thanks for the str() suggestion.  It seemed to work sometimes, meaning I
 didn't catch it in all places or there was something else going on.

 However I found that configurations #2 and #3 below worked, so far,
 without depending on the str() fix.

 I will post 3 configurations from my /usr/local/etc/apache22/extra/httpd-
 vhosts.conf (FreeBSD path).  The first one is the configuration that does
 not work, i.e that gives the error.  The second one works, and the third
 one works.  I've commented them with the relevant information, and I'm
 currently using the third one.


 {{{
   ServerName my_site.com
   ..
   ..
   ## Configuration #1
   ## WSGIScriptAlias / /path_to_my_app/apache/django.wsgi

   ## Configuration #2
   ## Solved decimal loading problem
   ## http://www.defitek.com/blog/2010/06/29/cant-adapt-type-decimal-
 error-with-django-apache-postgresql-psycopg2/
   ## http://groups.google.com/group/django-
 users/browse_thread/thread/44c2670de1509ac5
   ## WSGIDaemonProcess my_site
   ## WSGIScriptAlias / /path_to_my_app/apache/django.wsgi process-
 group=my_site application-group=%{GLOBAL}

   ## Configuration #3
   ## Also solved decimal loading problem
   ## From "Django 1.1 Testing and Debugging" by Karen M. Tracey
   ## Great! book
   WSGIScriptAlias / /path_to_my_app/apache/django.wsgi
   WSGIDaemonProcess my_site
   WSGIProcessGroup my_site

 }}}

 Information about version, OS, hardware:
 {{{
 pkg_info -XI 'wsgi|python|django|apache' |egrep -v registration
 ap22-mod_wsgi-3.3_1 Python WSGI adapter module for Apache
 apache-2.2.19   Version 2.2.x of Apache web server with prefork MPM.
 py27-django-1.3 High-level Python Web framework
 python27-2.7.2_1An interpreted object-oriented programming language

 uname -rpmi
 8.0-RELEASE-p4-jc2 amd64 amd64 jail8
 }}}

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-09-22 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  1.3|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:  dceu2011
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  0  |Needs tests:  1
  UI/UX:  0  |  Easy pickings:  0
-+-

Comment (by adrian.boczkowski@…):

 Check something like this before return statement:
 {{{
 if type(self.bid_price) != type(self.amt_paid):
raise Exception
 }}}

 I guess you will see an error. It raises an exception, because decimal
 module gets reloaded (as I read comments before), and the first
 decimal.Decimal and the second decimal.Decimal aren't the same. If you
 wan't to workaround it now, cast Decimals to str, and then to Decimal
 (decimal.Decimal(str(self.bid.price))) - I used it, but you'll probably
 have to change many lines of your code...

 Has anyone seen this error on other platforms (not apache+mod_wsgi based
 servers)? It seems it's rather mod_wsgi bug.

 Replying to [comment:13 ejohnstone@…]:
 > I saw a similar problem today, and it was isolated to Internet Explorer
 7 and 8.
 > This error did not show up on Firefox 6.01, nor Opera 11.51
 >
 > In my case, I had mistakenly written
 > {{{
 > return Decimal(self.bid_price - self.amt_paid)
 > }}}
 >
 > And self.bid_price and self.amt_paid were already of type 'Decimal'.
 > IE raised the error on this, yet Firefox and Opera didn't.
 > This seems strange to me.
 > I am using django 1.3.0

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-09-22 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  1.3|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:  dceu2011
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  0  |Needs tests:  1
  UI/UX:  0  |  Easy pickings:  0
-+-
Changes (by ejohnstone@…):

 * version:  SVN => 1.3


Comment:

 I saw a similar problem today, and it was isolated to Internet Explorer 7
 and 8.
 This error did not show up on Firefox 6.01, nor Opera 11.51

 In my case, I had mistakenly written
 {{{
 return Decimal(self.bid_price - self.amt_paid)
 }}}

 And self.bid_price and self.amt_paid were already of type 'Decimal'.
 IE raised the error on this, yet Firefox and Opera didn't.
 This seems strange to me.
 I am using django 1.3.0

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-09-19 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  SVN|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:  dceu2011
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  0  |Needs tests:  1
  UI/UX:  0  |  Easy pickings:  0
-+-

Comment (by adrian.boczkowski@…):

 This problem also occurs with Django 1.3 on Apache + mod_wsgi. I fix it by
 changing (sorry, I can't make .diff file):
 {{{
 try:
  return decimal.Decimal(value)
 }}}

 to:

 {{{
 try:
  return decimal.Decimal(str(value))
 }}}

 I know it's rather ugly workaround than beautiful fix ;-), but it seems to
 work fine.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-06-09 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  SVN|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:  dceu2011
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  0  |Needs tests:  1
  UI/UX:  0  |  Easy pickings:  0
-+-

Comment (by willhardy):

 This is a problem when you combine `isinstance` with reload. Because we
 can't avoid using `isinstance` in the decimal model, I've created a new
 decimal object when `TypeError` is raised, using the `as_tuple()`.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-06-09 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  SVN|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:  dceu2011
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  0  |Needs tests:  1
  UI/UX:  0  |  Easy pickings:  0
-+-
Changes (by willhardy):

 * keywords:   => dceu2011
 * needs_better_patch:  1 => 0
 * ui_ux:   => 0


-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-05-23 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  SVN|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  1  |Needs tests:  1
 |  Easy pickings:  0
-+-
Changes (by anonymous):

 * needs_better_patch:  0 => 1


-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-05-23 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Database layer
Version:  SVN|  (models, ORM)
 Resolution: |   Severity:  Normal
   Triage Stage:  Accepted   |   Keywords:
Needs documentation:  0  |  Has patch:  1
Patch needs improvement:  0  |Needs tests:  1
 |  Easy pickings:  0
-+-
Changes (by mindthief):

 * easy:   => 0


Comment:

 Hi,
 I added the above patch and re-ran python setup.py install to reinstall
 django. Now, the problem is still there but occurs in the patch I just
 added!

 Exception Type: TypeError
 Exception Value:
 Cannot convert Decimal('1') to Decimal
 Exception Location: /usr/lib/python2.6/decimal.py in __new__, line 651
 Python Executable:  /usr/bin/python
 Python Version: 2.6.5
 Python Path:
 ['/usr/lib/python2.6',
  '/usr/lib/python2.6/plat-linux2',
  '/usr/lib/python2.6/lib-tk',
  '/usr/lib/python2.6/lib-old',
  '/usr/lib/python2.6/lib-dynload',
  '/usr/lib/python2.6/dist-packages',


 The stacktrace where the error specifically occurs is:

 File "/usr/local/lib/python2.6/dist-
 packages/django/db/models/fields/subclassing.py" in inner
   28. return func(*args, **kwargs)
 File "/usr/local/lib/python2.6/dist-
 packages/django/db/models/fields/__init__.py" in get_db_prep_save
   786. # this method.
 File "/usr/local/lib/python2.6/dist-
 packages/django/db/models/fields/__init__.py" in to_python
   761. if not isinstance(value, decimal.Decimal) and \
 File "/usr/lib/python2.6/decimal.py" in __new__
   651. raise TypeError("Cannot convert %r to Decimal" % value)

 Exception Type: TypeError at /vote
 Exception Value: Cannot convert Decimal('1') to Decimal

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2011-03-05 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
-+-
   Reporter:  gagravarr  |Owner:  nobody
 Status:  new|Milestone:
  Component:  Database   |  Version:  SVN
  layer (models, ORM)| Keywords:
 Resolution: |Has patch:  1
   Triage Stage:  Accepted   |  Needs tests:  1
Needs documentation:  0  |
Patch needs improvement:  0  |
-+-

Comment (by rikwade):

 I believe I am encountering this problem with my Django application. Last
 couple of lines of Django debug:

 {{{
 [...]
  File "/usr/lib/python2.5/decimal.py", line 656, in __new__
raise TypeError("Cannot convert %r to Decimal" % value)

 TypeError: Cannot convert Decimal("10.5") to Decimal
 }}}

 I am running Django 1.2.5 with Apache 2 and WSGI. A code fix or
 documentation note with supported workaround would be appreciated.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2010-04-29 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
---+
  Reporter:  gagravarr | Owner:  nobody
Status:  new   | Milestone:
 Component:  Database layer (models, ORM)  |   Version:  SVN   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Comment (by hotani):

 I'm having this problem with latest SVN (13053). The occasional errors are
 e-mailed to me and I am unable to reproduce. I'm going to try applying the
 patch above and seeing if that helps.

 Using apache/mod_wsgi

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2010-01-12 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") to Decimal  " when 
the
decimal module has been reloaded
---+
  Reporter:  gagravarr | Owner:  nobody
Status:  new   | Milestone:
 Component:  Database layer (models, ORM)  |   Version:  SVN   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Changes (by orzel):

  * version:  1.0 => SVN

Comment:

 Hello. Just to confirm that the bug (really annoying if you have 'send
 error mail' on) in django trunk as of today, although it's really, really
 worse. If i disable the above patch (that i'm using for very long), i got
 such a mail for almost every save(). I think it happenned less often in
 may.
 I'm using apache + mod_python.
 The updated patch is :


 {{{
 --- a/django/db/models/fields/__init__.py   Tue Jan 12 16:33:40 2010
 +0100
 +++ b/django/db/models/fields/__init__.py   Tue Jan 12 16:57:48 2010
 +0100
 @@ -761,6 +761,11 @@
  def to_python(self, value):
  if value is None:
  return value
 +# Work around reload(decimal) problems
 +if not isinstance(value, decimal.Decimal) and \
 +   len(str(value.__class__).split("'")) == 3 and \
 +   str(value.__class__).split("'")[1] == 'decimal.Decimal':
 +return decimal.Decimal( value.to_eng_string() )
  try:
  return decimal.Decimal(value)
  except decimal.InvalidOperation:

 }}}

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2009-12-22 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") 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:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Changes (by SmileyChris):

  * needs_tests:  0 => 1
  * stage:  Unreviewed => Accepted

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2009-09-11 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") 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: 
Django 
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10933: Avoid " TypeError: Cannot convert Decimal("0.0000") to Decimal " when the decimal module has been reloaded

2009-05-17 Thread Django
#10933: Avoid " TypeError: Cannot convert Decimal("0.") 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 |  
---+
Changes (by orzel):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 hello. I'm hit by this same problem. I'm using django trunk (mainly
 because I hoped this bug was fixed), and python 2.6.2.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---