﻿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
26648	Add a system check for invalid related_query_names containing underscores	Michal Petrucha	nobody	"This came up on django-users@ the other week: https://groups.google.com/d/msg/django-users/vR6eR1l3AaY/Zo-H1nFtNwAJ

I think there should be a check for `related_query_name` to ensure it does not end with an underscore, or contain `__` – in either case, it would be impossible to actually use it in a query.

I'll open a WIP PR in a moment, but when I implemented this check, it turned out that there's actually a test case already which treats `related_name='_'` (without an explicit `related_query_name`) as valid. Is that something we want to support?"	Cleanup/optimization	closed	Core (System checks)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
