﻿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
31277	System check fields.E340 should be relaxed when DATABASE_ROUTERS is present.	Xavier Francisco	Xavier Francisco	"Hey.

On PR https://github.com/django/django/pull/11630, changes were made to change to allow for multiple models with the same `db_name`. Instead of an `Error` (`models.E028`), a `Warning` was created to be used in lieu of it, when `DATABASE_ROUTERS` is present.

The same issue arises, with a different check, when using `ManyToManyField`, with clashing `db_name`s. The system check in question is `fields.E340`.

My suggestion would be to do apply the same change for this check, and raise a `Warning` instead, whenever `DATABASE_ROUTERS` exists.
At this point, the only workaround is silencing the error system check."	Bug	closed	Core (System checks)	dev	Normal	fixed	database-router, manytomany		Ready for checkin	1	0	0	0	0	0
