Re: How to set ForeignKey with generic create view?

2007-12-12 Thread Kellen
In your input form you need to pass the blog object id. You should rather look into using the contrib.comments app rather than reinventing the comments system. Kellen On Dec 10, 8:01 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > I have this model: > > class BlogComment(Model): >

Re: How to set ForeignKey with generic create view?

2007-12-12 Thread Florian Lindner
Am 10.12.2007 um 20:01 schrieb Florian Lindner: > > Hello, > I have this model: > > class BlogComment(Model): >blogEntry = ForeignKey(BlogEntry, edit_inline=STACKED, > num_in_admin=1) >author = CharField(max_length=100, core=True) >authorMail = EmailField(blank=True) >content = T

How to set ForeignKey with generic create view?

2007-12-10 Thread Florian Lindner
Hello, I have this model: class BlogComment(Model): blogEntry = ForeignKey(BlogEntry, edit_inline=STACKED, num_in_admin=1) author = CharField(max_length=100, core=True) authorMail = EmailField(blank=True) content = TextField(core=True) Now I want to use the generic.create_updat