﻿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
9638	Add %(app_label)s to the related_name format string for abstract models	lakin@…	anonymous	"Reference: [http://docs.djangoproject.com/en/dev/topics/db/models/#be-careful-with-related-name be-careful-with-related-name].  

Emphasis mine:

To work around this problem, when you are using related_name in an abstract base class (only), part of the name should be the string '%(class)s'. This is replaced by the lower-cased name of the child class that the field is used in. '''Since each class has a different name, each related name will end up being different'''.

This simply isn't true.  The class name will be unique within the particular app, but it's very much possible to have two different apps which define a model with the same name: content.image vs security.image

I'm suggesting we add another parameter to that format string: ''%(app_label)s''


"		closed	Core (Other)	1.0		fixed		alexey.rudy@…	Ready for checkin	1	0	0	0	0	0
