Re: Breaking many-to-many connections

2010-08-31 Thread Christos Jonathan Hayward
I finally pinned down the problem; it was in an unrelated area. Thanks, On Tue, Aug 31, 2010 at 5:59 PM, Christos Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: > I have an Entity which has a many-to-many field "tags" to Tags. I'm trying > to pin down a bug, and wanted a sanity c

Breaking many-to-many connections

2010-08-31 Thread Christos Jonathan Hayward
I have an Entity which has a many-to-many field "tags" to Tags. I'm trying to pin down a bug, and wanted a sanity check: entity = directory.models.Entity.objects.get(id = int(search.group(1))) entity.tags.remove(directory.models.Tag.objects.get(id =