﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24079	Duplicate results of `ManyToManyField` when using 'through'	Jean-Christophe	nobody	"When using a many 2 many relation ship with 'through' parameter, the DB is returning duplicates when several relations exists for the same pair of objects.

I have the following relations :

{{{
              tag 1
      user 1 ----->  article 1
              tag 2
      user 1 ----->  article 1
}}}

'''Expected behavior :'''


{{{
user = User.objects.get(pk=1)
print user.article.all()
[<Article: 1>]
}}}


'''Observed behavior'''


{{{
user = User.objects.get(pk=1)
print user.article.all()
[<Article: 1>, <Article: 1>]
}}}

More details on Stack Overflow : http://stackoverflow.com/questions/27777065/duplicate-results-of-manytomanyfield-when-using-though"	Bug	closed	Database layer (models, ORM)	1.7	Normal	fixed			Unreviewed	0	0	0	0	0	0
