﻿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
18148	django.contrib.sites.managers.CurrentSiteManager should be able to span multiple models	Rory Geoghegan	nobody	"The current implementation of CurrentSiteManager can only be used with models that have a ForeignKey or ManyToManyField reference to a Site model. Because get_query_set uses the built-in filter syntax, you could specify remote model references by using a double underscore, except that the validation code breaks.

For example, you should be able to do:

{{{#!python
class Foo(model.Model):
   bar = models.ForeignKey('Bar')
   on_site = CurrentSiteManager('bar__site')
}}}

and it should do the right thing."	New feature	new	contrib.sites	1.4	Normal			sfllaw@… krzysiumed@… Rory Geoghegan	Accepted	1	0	0	1	0	0
