Re: first() and last(), earliest() and latest()

2013-05-15 Thread Alex Ogier
Significantly better. The latter method loads every single model in the queryset into Python, potentially the whole database! On May 15, 2013 9:24 PM, "Lee Trout" wrote: > Is qs[:1][0] better form than list(qs)[0]? > > > On Wed, May 15, 2013 at 7:48 AM, Selwin Ong

Re: first() and last(), earliest() and latest()

2013-05-15 Thread Lee Trout
Is qs[:1][0] better form than list(qs)[0]? On Wed, May 15, 2013 at 7:48 AM, Selwin Ong wrote: > I've updated the first() and last() to not accept any arguments. Please > review it and let me know if there's anything else I need to change. > Hopefully this can get merged

Re: Anyone have ideas on #16550 - custom SQL before/after syncdb?

2013-05-15 Thread Donald Stufft
On May 15, 2013, at 9:01 PM, Jacob Kaplan-Moss wrote: > Hi folks -- > > Does anyone have some clever thoughts on how to solve #16650? > > https://code.djangoproject.com/ticket/16550#comment:7 is a good > summary of the problem: if you're using extensions, you need a way to

Re: Perception of attitude in tickets

2013-05-15 Thread Cal Leeming [Simplicity Media Ltd]
The fact that one of the core founders of Django has responded to say "Consider it done", is probably about as official as it can get. I have gone ahead and written up a section explaining how the 5-for-1 system works, any amendments or additions would be welcomed.

Anyone have ideas on #16550 - custom SQL before/after syncdb?

2013-05-15 Thread Jacob Kaplan-Moss
Hi folks -- Does anyone have some clever thoughts on how to solve #16650? https://code.djangoproject.com/ticket/16550#comment:7 is a good summary of the problem: if you're using extensions, you need a way to run some custom SQL in tests after the DB gets created by the test harness but before

Re: Perception of attitude in tickets

2013-05-15 Thread Jacob Kaplan-Moss
On Tue, May 14, 2013 at 5:41 PM, Cal Leeming [Simplicity Media Ltd] wrote: > * Make the 5-for-1 (or 10-for-1) system official, not many people seem to > realise this exists. This will give incentive to core devs to spend a bit > longer on a ticket, maybe even

Re: Perception of attitude in tickets

2013-05-15 Thread Jacob Kaplan-Moss
As suggested to me (privately) by Tom Evans, I've started trying to keep an eye on tickets that bounce back and forth between open and wontfix. If a ticket "bounces" a few times it's probably a sign that there's something going on, and we may want to proactively start a mailing list thread rather

Re: Reminder: pending Oracle fixes and issues

2013-05-15 Thread Shai Berger
Hi, Resurrecting a 4-month-old thread: On Sunday 20 January 2013 10:05:16 Anssi Kääriäinen wrote: > On 20 tammi, 02:52, Shai Berger wrote: > > Which still leaves two issues -- PR #393 (faster processign of numbers; I > > think I forgot to mention earlier -- it is just some

Re: Ticket 13978: Allow inline js/css in forms.Media

2013-05-15 Thread Donald Stufft
Re CSP It's more or less fine to start using it. It needs a clean API for configuring it still but it's pretty solid. However a newish feature that has been added is the ability to allow _some_ inline scripts but not all. This feature doesn't have widespread support yet sadly though. The

Re: Ticket 13978: Allow inline js/css in forms.Media

2013-05-15 Thread Aymeric Augustin
On 14 mai 2013, at 02:36, Derek Payton wrote: > I have a working patch with tests and docs for #13978, which would add the > ability to have inline JS and CSS in forms.Media. I feel that this ticket is > a much better solution than, e.g., scattering the required inline

Re: Remote participation in sprints

2013-05-15 Thread Łukasz Rekucki
On 15 May 2013 20:29, Shai Berger wrote: > On Wednesday 15 May 2013, ptone wrote: > > On Wednesday, May 15, 2013 10:31:36 AM UTC-7, Daniele Procida wrote: > > > On Wed, May 15, 2013, Shai Berger > > > > > > > >Will there be an effective way to do this

Re: Perception of attitude in tickets

2013-05-15 Thread ptone
On Wednesday, May 15, 2013 3:20:41 AM UTC-7, Luke Plant wrote: > > Hi Joe, > > > On 14/05/13 00:55, Joe Tennies wrote: > > As a fellow lurker (sorry I've been using Flask more recently), I think > > this could simply be fixed via a form response. Here's a simple example: > > > > This bug is

Re: Remote participation in sprints

2013-05-15 Thread ptone
On Wednesday, May 15, 2013 10:31:36 AM UTC-7, Daniele Procida wrote: > > On Wed, May 15, 2013, Shai Berger > wrote: > > >Hi all, > > > >This saturday and sunday there are supposed to be sprints in DjangoCon EU > in > >Warsaw. To my regret, I could not be present at

Re: Remote participation in sprints

2013-05-15 Thread Daniele Procida
On Wed, May 15, 2013, Shai Berger wrote: >Hi all, > >This saturday and sunday there are supposed to be sprints in DjangoCon EU in >Warsaw. To my regret, I could not be present at the conference. However, >I may >be able to set aside the two days and participate in the sprint

Remote participation in sprints

2013-05-15 Thread Shai Berger
Hi all, This saturday and sunday there are supposed to be sprints in DjangoCon EU in Warsaw. To my regret, I could not be present at the conference. However, I may be able to set aside the two days and participate in the sprint remotely. Will there be an effective way to do this while

Re: Perception of attitude in tickets

2013-05-15 Thread Aymeric Augustin
On 15 mai 2013, at 12:20, Luke Plant wrote: > So I've gone ahead and created a wiki page, which can be longer and more > friendly, and require a shorter response on the actual ticket, something > like this: > > Closing as WONTFIX because ... > > If you want to

Re: first() and last(), earliest() and latest()

2013-05-15 Thread Selwin Ong
I've updated the first() and last() to not accept any arguments. Please review it and let me know if there's anything else I need to change. Hopefully this can get merged in during the sprints and make it into 1.6 :). The pull request is here: https://github.com/django/django/pull/1056 Best,

Re: Perception of attitude in tickets

2013-05-15 Thread Shai Berger
On Wednesday 15 May 2013, Luke Plant wrote: > > So I've gone ahead and created a wiki page, which can be longer and more > friendly, and require a shorter response on the actual ticket, something > like this: > > Closing as WONTFIX because ... > > If you want to persuade us otherwise,

Re: Perception of attitude in tickets

2013-05-15 Thread Luke Plant
Hi Joe, On 14/05/13 00:55, Joe Tennies wrote: > As a fellow lurker (sorry I've been using Flask more recently), I think > this could simply be fixed via a form response. Here's a simple example: > > This bug is being marked as "WONTFIX" because > > Please realize that every API/feature added