Re: 3 questions about DecimalFields

2009-08-16 Thread bobhaugen
Karen, Once again, thanks for the detailed and useful response. On Aug 16, 1:17 pm, Karen Tracey wrote: > If the Python object was created on the fly and relied on the default value: > > dt1 = DThing() > dt1.save() > Then prior to the fix for that bug, dt1.remaining and dt2.remaining would be

Re: 3 questions about DecimalFields

2009-08-16 Thread Karen Tracey
On Sun, Aug 16, 2009 at 12:24 PM, bobhaugen wrote: > > 1, I ran into this anomaly in updating a decimal field: > > The field: > >remaining = models.DecimalField(max_digits=8, decimal_places=2, > default=Decimal("0")) > > The code that failed: > > 658 self.remaining -= qty > 659

Re: 3 questions about DecimalFields

2009-08-16 Thread bobhaugen
On Aug 16, 11:24 am, bobhaugen wrote: > 2. This changeset says it has fixed ticket > #5903:http://code.djangoproject.com/changeset/9823 > > Also says it was fixed 6 months ago.  I did not find the ticket listed > in any of the milestones in the last 6 months, and the page does not > list a miles