﻿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
12203	ManyToManyField with through model can't be used in admin	David Gouldin	Rosana Rufer	"Using the following models:
{{{
class Author(models.Model):
    name = models.CharField(max_length=100)

class Book(models.Model):
    name = models.CharField(max_length=100)
    authors = models.ManyToManyField(Author, through='AuthorsBooks')

class AuthorsBooks(models.Model):
    author = models.ForeignKey(Author)
    book = models.ForeignKey(Book)
}}}

... with this admin:

{{{
class BookAdmin(admin.ModelAdmin):
    fields = ['authors']
}}}

... results in a TemplateSyntaxError.  Removing the through kwarg in Book.author field definition, the same admin class works."	Bug	assigned	contrib.admin	dev	Normal		M2M, admin, through, through_fields	dgouldin@… glicerinu@… cmawebsite@… frnhr Dmytro Litvinov	Accepted	1	1	1	1	0	0
