Re: DecimalField model validation

2011-10-05 Thread Paul McMillan
> .. (A) silent rounding issue: >    when a decimal value is saved in db >    its decimal digits exceeding decimal_places are rounded off using >    .quantize(). Rounding defaults to ROUND_HALF_EVEN (python default). >    There is no mention of this behavior in docs. Docs patches welcomed. This

Re: login_required decorator and user.is_active (yes, again)

2011-10-05 Thread Brian Neal
On Oct 5, 2:59 pm, ptone wrote: > 13125 was wontfixed by Jacob at the end of the summer, this relates to > the login_required decorator not checking for user.is_active > > I had opened a duplicate ticket 16996 before catching it as a dupe > > I'm going to dredge this one back

login_required decorator and user.is_active (yes, again)

2011-10-05 Thread ptone
13125 was wontfixed by Jacob at the end of the summer, this relates to the login_required decorator not checking for user.is_active I had opened a duplicate ticket 16996 before catching it as a dupe I'm going to dredge this one back up. At a minimum, the current, counter-intuitive behavior of

Re: #10863 - Email full stack traces (feedback please!)

2011-10-05 Thread Cal Leeming [Simplicity Media Ltd]
That's pretty nice - something like this would be a nice additional feature. Any thoughts core devs?? On Wed, Oct 5, 2011 at 8:26 PM, Patryk Zawadzki wrote: > On Wed, Oct 5, 2011 at 12:40 PM, Cal Leeming [Simplicity Media Ltd] >

Re: #10863 - Email full stack traces (feedback please!)

2011-10-05 Thread Patryk Zawadzki
On Wed, Oct 5, 2011 at 12:40 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Could I bring the latest comment on the following ticket to the attention of > you guys: > https://code.djangoproject.com/ticket/10863#comment:17 > Any feedback would be much

#16572 — looking for directions

2011-10-05 Thread Patryk Zawadzki
Hi, As you can see in the ticket¹, I've identified the source of the exception and provided a naïve patch. I am however not familiar with internals of the SQL compiler enough to judge whether it's the correct place to patch. Can someone with more knowledge hold my hand here? I am interested in

Re: UPPER vs. ILIKE for __icontains

2011-10-05 Thread Ted Gruenloh
Yeah, I've played around with the trigram indexes a little in 9.1, with mixed results.  For example, they didn't appear to improve the queries I used in my examples below. Anyway, I think the case for using ILIKE for __icontains on postgres is worthwhile, and it's dead simple to change the 2

DecimalField model validation

2011-10-05 Thread Marco Paolini
Hi, I would like to share some thoughts regarding django.db.models.DecimalField: .. (A) silent rounding issue: when a decimal value is saved in db its decimal digits exceeding decimal_places are rounded off using .quantize(). Rounding defaults to ROUND_HALF_EVEN (python default).

#10863 - Email full stack traces (feedback please!)

2011-10-05 Thread Cal Leeming [Simplicity Media Ltd]
Could I bring the latest comment on the following ticket to the attention of you guys: https://code.djangoproject.com/ticket/10863#comment:17 Any feedback would be much appreciated. Thanks Cal -- You received this message because you are subscribed to the Google Groups "Django developers"