﻿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
35656	Make migration Command doesn't allow changing the autodetector	Ahmed Ibrahim	Ahmed Ibrahim	"I had a situation where I want to subclass the Autodetector to add more operations that the ones in Django, an operation that does not create a row, but rather, a table (different model)

This line is copied from `django/django/core/management/commands/makemigrations.py`



{{{
# Detect changes
changes = autodetector.changes(
     graph=loader.graph,
     trim_to_apps=app_labels or None,
     convert_apps=app_labels or None,
     migration_name=self.migration_name,
)
}}}

The suggested approach is to save the `autodetector` on the class level, and subclasses can override it to use their custom version.


P.S: I'm not sure if this is considered a feature or an optimization"	New feature	closed	Migrations	dev	Normal	fixed	migrations, makemigrations, commands	Ahmed Ibrahim	Ready for checkin	1	0	0	0	0	0
