Re: Assigning to a model attribute with F()

2009-07-22 Thread Russell Keith-Magee
On Thu, Jul 23, 2009 at 7:56 AM, Zachary Voase wrote: > > I just found out that a particular Django ORM trick [1] seems to work > just fine but is undocumented. > > Could I ask what the official status is with regards to this ‘trick’? > Is it intentional? Also, since

Assigning to a model attribute with F()

2009-07-22 Thread Zachary Voase
I just found out that a particular Django ORM trick [1] seems to work just fine but is undocumented. Could I ask what the official status is with regards to this ‘trick’? Is it intentional? Also, since there isn’t any documentation for it, if it is in fact an intended feature, would you like me

Re: OneToManyField?

2009-07-22 Thread Russell Keith-Magee
On Wed, Jul 22, 2009 at 4:05 PM, dan wrote: > >> >> If a model A has a foreign key on model B, then the table for A >> requires a field to track the relation. However, if model B has a >> "many to one" on A table A requires a field. > > sorry, can you clarify that for

Re: OneToManyField?

2009-07-22 Thread Waylan Limberg
On Wed, Jul 22, 2009 at 4:05 AM, dan wrote: > [snip] > > I think what the original question is asking is, can the definition of > Parent have a "one-to-many" which points to Child?  At the database > level there would be no difference: Child would still have the foreign >

Re: OneToManyField?

2009-07-22 Thread dan
> > If a model A has a foreign key on model B, then the table for A > requires a field to track the relation. However, if model B has a > "many to one" on A table A requires a field. > sorry, can you clarify that for me? - specifically: "model A has a foreign key on model B" - which

Re: to save modified version of contents

2009-07-22 Thread ankit
you can simply make a db connectioin and insert the new data in a different table says which mantained the history.And if you want to the value in after some lag then used a cron simple. Have u ever try this check out : in forms.py just write in ur modelForm test(somename) =

Re: to save modified version of contents

2009-07-22 Thread Russell Keith-Magee
On Wed, Jul 22, 2009 at 3:16 PM, Ali Rıza KELEŞ wrote: > Hi, > > I have a model which keeps texts, dates, author, etc.. something like a > clasical content model. > > I want to allow admins to save modified versions of these contents. If > possible in another db table like

Re: Django 1.1 release candidate now available

2009-07-22 Thread Dhruv Adhia
Go Django! Thanks to everybody and specially developers! Dhruv Adhia http://thirdimension.com On Tue, Jul 21, 2009 at 7:35 PM, James Bennett wrote: > > Hi folks! Tonight we've pushed out the Django 1.1 release candidate, > which is hopefully the last stepping-stone to

to save modified version of contents

2009-07-22 Thread Ali Rıza KELEŞ
Hi, I have a model which keeps texts, dates, author, etc.. something like a clasical content model. I want to allow admins to save modified versions of these contents. If possible in another db table like this: ... same table fields with referer table which keeps modified contents by

Re: Django 1.1

2009-07-22 Thread Michael Kerrin
Hi, Thanks for the update, I am looking forward to the release there is a lot of good stuff in there. Thanks again, Michael 2009/7/21 Russell Keith-Magee > > On Tue, Jul 21, 2009 at 5:02 PM, Michael Kerrin > wrote: > > Hi All, > > > > I am