Re: ManyToManyField and get_or_create

2012-08-31 Thread Matt Long
Bump? Almost exactly 4 years later, I've ran into this exact same issue in Django 1.4. Attempting to use get_or_create through a ManyToMany field results in an integrity error if the object already exists but is not yet associated with the parent object. To use the OP's example, if a Tag with n

Re: performance of delete

2013-04-24 Thread Matt Long
have to do some intelligent batching of your IN clause, so maybe it does make sense to leave that hairy logic out of the ORM :-) -- Matt Long Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, April 24, 2013 at 18:31, Larry Martell wrote: > I changed it to delete one row