Re: Atomic C/U/D for models which have ManyToManyField or related ForeignKeyField

2006-03-01 Thread Nebojša Đorđević
Nebojša Đorđević wrote: > When I have models like this: > Well, from [2457] in m-r branch django has a transaction support so I suppose that this question is now irrelevant. -- Nebojša Đorđević - nesh Studio Quattro - Niš - SCG http://studioquattro.biz/ http://djnesh.blogspot.com/ | http://

Atomic C/U/D for models which have ManyToManyField or related ForeignKeyField

2006-02-23 Thread Nebojša Đorđević
When I have models like this: class Foo(meta.Model) ... class Bar(meta.Model): foos = meta.ManyToManyField(Foo) class Baz(meta.Model) bar = meta.ForeignKey(Bar, edit_inline=True) object creation will go something like this: obj = Bar(...) obj.save() # a must, or below cod