Re: Django settings paths mess

2009-08-15 Thread Yuri Baburov
On Sat, Aug 15, 2009 at 4:48 PM, Graham Dumpleton wrote: > On Aug 15, 6:42 pm, Yuri Baburov wrote: >> On Sat, Aug 15, 2009 at 12:24 PM, Graham >> Dumpleton wrote: >> > On Aug 15, 1:15 pm, Yuri Baburov wrote: >> >> Hi all, >> >> >> I'm trying to figure out correct overall and settings path usage

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread hcarvalhoalves
On Aug 15, 8:53 pm, Russell Keith-Magee wrote: > On Sun, Aug 16, 2009 at 1:45 AM, hcarvalhoalves > wrote: > > > On Aug 14, 11:48 pm, Russell Keith-Magee > > wrote: > >> On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves > >> wrote: > > >> > On Aug 13, 9:30 am, Russell Keith-Magee > >> > wrote: >

Re: Shouldn't custom fields in ModelForms pick up model Field options by default?

2009-08-15 Thread Kevin Henry
> > Thanks, the accompanying discussion is very interesting and on point. > > But as someone there points out, why stop at widgets? > > Because customizing widgets is a common request, unlike other attributes. But customizing fields is quite common, no? I agree that it's rare that you will want t

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Russell Keith-Magee
On Sun, Aug 16, 2009 at 1:45 AM, hcarvalhoalves wrote: > > On Aug 14, 11:48 pm, Russell Keith-Magee > wrote: >> On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves >> wrote: >> >> > On Aug 13, 9:30 am, Russell Keith-Magee >> > wrote: >> >> On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassford >> >>

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Michael Glassford
Michael Glassford wrote: > > > hcarvalhoalves wrote: >> On Aug 14, 11:48 pm, Russell Keith-Magee >> >> wrote: >>> On Sat, Aug 15, 2009 at 8:09 AM, >>> hcarvalhoalves >>> wrote: >>> On Aug 13, 9:30 am, Russell Keith-Magee wrote: > On Thu, Aug 13, 2009 at 12:04 AM, Micha

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Michael Glassford
hcarvalhoalves wrote: > On Aug 14, 11:48 pm, Russell Keith-Magee > > wrote: >> On Sat, Aug 15, 2009 at 8:09 AM, >> hcarvalhoalves wrote: >> >>> On Aug 13, 9:30 am, Russell Keith-Magee >>> >>> wrote: On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassford wrote: Secondly: I'm sen

Re: Inline formsets

2009-08-15 Thread Joshua Russo
On Sat, Aug 15, 2009 at 8:45 PM, mrts wrote: > > At HTML level, a form is a set of fields that gets submitted when > a the form submit button is pressed. > > However, this is not the case with model forms and inline formsets > (e.g. an admin page with inlines) -- inline formsets are > disparate f

Inline formsets

2009-08-15 Thread mrts
At HTML level, a form is a set of fields that gets submitted when a the form submit button is pressed. However, this is not the case with model forms and inline formsets (e.g. an admin page with inlines) -- inline formsets are disparate from the model form. This creates at least two problems: 1)

Feature proposal: admin.ModelAdmin modified hook

2009-08-15 Thread Joshua Russo
I've implemented a simple hook called model_modified() that can be extended in the user's ModelAdmin class. It's called after a New, Update, or Delete action is taken. I've used it in my application to clear related session information that I use to cache heavy query results. Does this sound like a

Re: Shouldn't custom fields in ModelForms pick up model Field options by default?

2009-08-15 Thread Ivan Sagalaev
Kevin Henry wrote: >> There's also a ticket waiting for check-in implementing this common >> usecase:http://code.djangoproject.com/ticket/9223 > > Thanks, the accompanying discussion is very interesting and on point. > But as someone there points out, why stop at widgets? Because customizing wid

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread hcarvalhoalves
On Aug 14, 11:48 pm, Russell Keith-Magee wrote: > On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves > wrote: > > > On Aug 13, 9:30 am, Russell Keith-Magee > > wrote: > >> On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassford > >> wrote: > > >> Secondly: I'm sensitive to the extent that 'on delete

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Russell Keith-Magee
On Sat, Aug 15, 2009 at 10:46 PM, Michael Glassford wrote: > > Russell Keith-Magee wrote: >> On Sat, Aug 15, 2009 at 10:57 AM, Michael Glassford >> wrote: >>> Russell Keith-Magee wrote: On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves wrote: > On Aug 13, 9:30 am, Russell Keith-Magee

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Michael Glassford
Russell Keith-Magee wrote: > On Sat, Aug 15, 2009 at 10:57 AM, Michael Glassford > wrote: >> Russell Keith-Magee wrote: >>> On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves >>> wrote: On Aug 13, 9:30 am, Russell Keith-Magee wrote: > On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassfo

Re: admin reuse

2009-08-15 Thread Julien Phalip
On Aug 15, 9:14 pm, Russell Keith-Magee wrote: > On Sat, Aug 15, 2009 at 3:52 PM, Haroldo > > Stenger wrote: > >  I've seen the admin evolve to very sophisticated user interaction. > > Nonetheless, the param to  HttpResponse() when a model object has been > > saved, is hardcoded and most of the t

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Russell Keith-Magee
On Sat, Aug 15, 2009 at 10:57 AM, Michael Glassford wrote: > > Russell Keith-Magee wrote: >> On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves >> wrote: >>> On Aug 13, 9:30 am, Russell Keith-Magee >>> wrote: On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassford wrote: Secondly:

Re: admin reuse

2009-08-15 Thread Russell Keith-Magee
On Sat, Aug 15, 2009 at 3:52 PM, Haroldo Stenger wrote: >  I've seen the admin evolve to very sophisticated user interaction. > Nonetheless, the param to  HttpResponse() when a model object has been > saved, is hardcoded and most of the times "../../.." or "../.."  (see > options.py in contrib.adm

Re: Django settings paths mess

2009-08-15 Thread Graham Dumpleton
On Aug 15, 6:42 pm, Yuri Baburov wrote: > On Sat, Aug 15, 2009 at 12:24 PM, Graham > > > > > > Dumpleton wrote: > > On Aug 15, 1:15 pm, Yuri Baburov wrote: > >> Hi all, > > >> I'm trying to figure out correct overall and settings path usage > >> strategy for my Django applications. > >> What I

Re: App Engine support

2009-08-15 Thread Waldemar Kornewald
Hi Malcolm, first of all, we'll soon start with a few experiments and since you wanted to play around with some code, too, could you please tell us your bitbucket username, so we can give you write access to the repository? On Aug 11, 4:07 am, Malcolm Tredinnick wrote: > Things like a ListField

Re: overriding queryset for admin inlines

2009-08-15 Thread Zachary Voase
...would get via the actual Python API? In this case, you couldn’t switch the managers around either. On Aug 15, 10:19 am, Zachary Voase wrote: > Correct me if I’m wrong, but won’t the inlines display the actual > relationship that you > > On Aug 14, 5:43 pm, smcoll wrote: > > > > > Currently,

Re: overriding queryset for admin inlines

2009-08-15 Thread Zachary Voase
Correct me if I’m wrong, but won’t the inlines display the actual relationship that you On Aug 14, 5:43 pm, smcoll wrote: > Currently, we can override the queryset used by ModelAdmins.  This is > helpful, since often times the default manager omits instances that > nevertheless belong in the adm

Re: Shouldn't custom fields in ModelForms pick up model Field options by default?

2009-08-15 Thread Kevin Henry
> Please file a ticket for the documentation fix it would be greatly   > appreciated. :-) Will do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djan

Re: Shouldn't custom fields in ModelForms pick up model Field options by default?

2009-08-15 Thread Kevin Henry
In terms of backward compatibility, perhaps there could be a new keyword argument to Field, something like with_model_defaults, that the user would use to indicate a desire to get the attributes from the Model. How would this work? Maybe something like this (this is just a sketch): Field.__init__(

Re: Django settings paths mess

2009-08-15 Thread Yuri Baburov
On Sat, Aug 15, 2009 at 12:24 PM, Graham Dumpleton wrote: > On Aug 15, 1:15 pm, Yuri Baburov wrote: >> Hi all, >> >> I'm trying to figure out correct overall and settings path usage >> strategy for my Django applications. >> What I am experiencing now is that settings.py is imported 4 times on >>

admin reuse

2009-08-15 Thread Haroldo Stenger
I've seen the admin evolve to very sophisticated user interaction. Nonetheless, the param to HttpResponse() when a model object has been saved, is hardcoded and most of the times "../../.." or "../.." (see options.py in contrib.admin). Being able to change that string by some means of instantiat