Re: object appears twice after filtering by many to many field

2010-12-22 Thread Dan Fairs
> Thanks for the quick replay. > The problem is the clip duplication, when relaying on clip_set.count() > and also in the admin site when you see raw duplication after > filtering , it is not very reasonable :) > Ah, I didn't realise it was in the admin. It'll still be the same underlying proble

Re: object appears twice after filtering by many to many field

2010-12-22 Thread tom
Thanks for the quick replay. The problem is the clip duplication, when relaying on clip_set.count() and also in the admin site when you see raw duplication after filtering , it is not very reasonable :) 1. in order to change this behavior in the admin site I need to manipulate main.py and add dist

Re: object appears twice after filtering by many to many field

2010-12-22 Thread Dan Fairs
> Hi all! > I have 2 models: Clip, Tag. > class Clip(models.Model): > name = models.CharField(max_length=80) > tags = models.ManyToManyField(Tag, through = 'TagsToClips') > > class Tag(models.Model): > tagName = models.CharField(max_length=80, unique=True) > > class Tag

object appears twice after filtering by many to many field

2010-12-22 Thread tom
Hi all! I have 2 models: Clip, Tag. class Clip(models.Model): name = models.CharField(max_length=80) tags = models.ManyToManyField(Tag, through = 'TagsToClips') class Tag(models.Model): tagName = models.CharField(max_length=80, unique=True) class TagsToClips(models.M

object appears twice after filtering by many to many field

2010-12-22 Thread tom
Hi all! I have 2 models: Clip, Tag. class Clip(models.Model): name = models.CharField(max_length=80) tags = models.ManyToManyField(Tag, through = 'TagsToClips') class Tag(models.Model): tagName = models.CharField(max_length=80, unique=True) class TagsToClips(models.M