﻿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
20956	Do not check conn['ENGINE'] existence twice in django.db.utils.ConnectionHandler	Dima Kurguzov	nobody	"During code surfing I found a piece of code to optimize.

In [[https://github.com/django/django/blob/master/django/db/utils.py#L175|this line]] the `conn['ENGINE']` is set to `'django.db.backends.dummy'` if it is missed.
In [[https://github.com/django/django/blob/master/django/db/utils.py#L176|the next line]] it is checked for existence.

We can remove this check.

"	Cleanup/optimization	closed	Database layer (models, ORM)	1.5	Normal	invalid			Accepted	0	0	0	0	1	0
