Why there is no a verbose_name parameter in FormField class?

2006-03-07 Thread limodou
I know that FormField can be used for receiving input data. But create a form in template is too tedious, because I need to write label for every field myself, and I cann't auto create the label from a loop, just like: {% for f in form.fields %} {{ f.formfield.verbose_name }} {{ f

Re: Aggregate Functions

2006-03-07 Thread Russell Keith-Magee
On 3/8/06, Rock <[EMAIL PROTECTED]> wrote: It seems that no one else has any thoughts about this, so its just youand me.I read it to mean that everyone was concentrating on getting magic-removal finished. MR is all about getting the backwards incompatible changes out of the way in one big jump; on

Re: Aggregate Functions

2006-03-07 Thread Gary Wilson
Rock wrote: > Finally, I agree that the name get_aggregate(s) kinda sux but I still > haven't come up with anything better. Sending to list this time, sorry Rock... Throwing these into the mix: Inventory.objects.aggregate(['AVG','MIN','MAX'],'quantity') Inventory.objects.calculate(['AVG','MIN',

Re: Aggregate Functions

2006-03-07 Thread Rock
Russ, It seems that no one else has any thoughts about this, so its just you and me. First I note that I agree with you about count. I am taking that out. Next, I disagree about "average". Using the abbreviated SQLish name for all of the functions except one is bad. Either all of the names shou

Proposal: edit_inline=meta.EXTERNAL

2006-03-07 Thread Joseph Kocherhans
I'd especially appreciate Simon's feedback on this one as it's mostly visual. Screenshot and summary at: http://code.djangoproject.com/ticket/1476 Here's the summary: I've been using a new type of edit_inline behavior for a lot of apps here that works very well, especially for objects that have

Re: Finalizing descriptor implementation

2006-03-07 Thread kmh
Russell Keith-Magee wrote: > In addition, your alternative would have 'X = article.reporter_set' > provide useful data, but 'article.reporter_set = X' throw an exception > - this asymmetry strikes me as much more confusing than the absence of > strict name binding. This is a good point, but at le

Re: Finalizing descriptor implementation

2006-03-07 Thread Russell Keith-Magee
On 3/7/06, kmh <[EMAIL PROTECTED]> wrote: > > Thanks for the nice roundup. Votes may be in but just to clarify: my > primary objection is that assignment is fundamentally a name-binding > operation in Python and in this case what is bound to the name is not > what is returned. The fact that the

Re: Finalizing descriptor implementation

2006-03-07 Thread Russell Keith-Magee
On 3/7/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Russ, I can't thank you enough for your work on this stuff. Half > these edge cases I wouldn't have even thought of 'til they bit me in > the ass -- I really appreciate it :) More than welcome. Being on the other side of the world makes

MySQL get_data_trunc_sql using DATE_FORMAT() instead

2006-03-07 Thread Geert Vanderkelen
Hi! I have a ticket going for replacing the get_data_trunc_sql function here: http://code.djangoproject.com/ticket/1423 This has been closed with a note that MySQL's function DATE_FORMAT() can't be used because it doesn't return a DATETIME. Putting a CAST (DATE_FORMAT(%s,'%s') AS DATETIM

Re: Django on python.org

2006-03-07 Thread Tom Tobin
On 3/7/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > The new python site went live: http://www.python.org/ > > And Django is on the front page. Sweet. Although it would irk me a bit less if they dropped the silly "mega-" prefix. :-p --~--~-~--~~~---~--~~ You recei

Django on python.org

2006-03-07 Thread Luke Plant
The new python site went live: http://www.python.org/ And Django is on the front page. Sweet. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to dj

Re: Finalizing descriptor implementation

2006-03-07 Thread Ivan Sagalaev
hugo wrote: >I would be +1 on this. Especially since transactions are already in >m-r, so we won't have to worry about multiple save points playing havoc >with our database connection. > I'd say -1. For it's not about database it's about what is expected behavior. Currently I'm never sure what c