﻿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
11018	Generic foreign keys in custom m2m relationship model	Alexandr	nobody	"In version 1.0.2 and older we can use custom table for ManyToManyField with parameter through = MyRelationModel. MyRelationModel should include foreign keys. I want to use generic foreign key as one foreign keys:


{{{
class SomeModel(models.Model):
    marks = models.ManyToManyField(to=Mark, through=MarkedItem)


class MarkedItem(models.Model):
    mark = models.ForeignKey(Mark)
    
    content_type = models.ForeignKey(ContentType)
    object_id = models.PositiveIntegerField()
    content_object = generic.GenericForeignKey('content_type', 'object_id')
}}}

Example: content object as one of foreign keys.

But this code is't work."	New feature	closed	contrib.contenttypes	1.1-beta	Normal	wontfix			Accepted	0	0	0	0	0	0
