Re: Shouldn't views.generic.create_update.lookup_object use the default manager instead of .objects?

2011-10-07 Thread Jeremy Dunck
It is indeed a bug. On Fri, Oct 7, 2011 at 10:19 AM, Guilherme Salgado wrote: > Hi there, > > That function uses .objects on whatever model is passed to it by > update_object() (or delete_object()), and I can't think of a reason to > use that instead of the default manager (although my knowledge

Shouldn't views.generic.create_update.lookup_object use the default manager instead of .objects?

2011-10-07 Thread Guilherme Salgado
Hi there, That function uses .objects on whatever model is passed to it by update_object() (or delete_object()), and I can't think of a reason to use that instead of the default manager (although my knowledge of Django internals is rather minimal), so I thought I'd ask here first before filing a b

Re: DecimalField model validation

2011-10-07 Thread Marco Paolini
On 07/10/2011 06:29, Tai Lee wrote: Why is ROUND_HALF_EVEN superior? Perhaps for statistics, where rounding all halves up would skew results, but I guess not for most other cases. If the default rounding behaviour produces different results than a regular calculator, common spreadsheet and accou