Re: ModelForms

2007-11-11 Thread Russell Keith-Magee
On 11/10/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > On 11/9/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > I'd hate to see the obj arg get put into the constructor of a > BaseForm, so Form's metaclass would end up generating a subclass of > BaseForm or BaseModelForm depending o

Re: newforms and edit_inline

2007-11-11 Thread Honza Král
On Nov 11, 2007 7:58 PM, cory <[EMAIL PROTECTED]> wrote: > > Hello, > > I've spent the last day or so wrestling with something that I'm sure > has a very simple solution, I just haven't found it or figured it out. > I've got two classes, organized like this: > > class Foo(models.Model): > bar = m

Re: Settings of reusable apps

2007-11-11 Thread Jacob Kaplan-Moss
On 11/11/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > What do you think? Please search the archives: this has come up in the past. We've decided not to; it's just a bit too magic. Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed

Settings of reusable apps

2007-11-11 Thread Ivan Sagalaev
Hello, Django developers! When writing reusable apps I've developed a pattern for including settings specific for the app. For example my forum needs settings for pagination, unread articles expiration etc... I include such settings in a settings.py inside an application which serves both as d

newforms and edit_inline

2007-11-11 Thread cory
Hello, I've spent the last day or so wrestling with something that I'm sure has a very simple solution, I just haven't found it or figured it out. I've got two classes, organized like this: class Foo(models.Model): bar = models.ForeignKey(Bar, edit_inline=models.TABULAR) start_time = models.