﻿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
22824	Unhandled KeyError during makemigrations	Ben Davis	nobody	"Haven't figured out exactly what's causing this one, but I'm putting the exception here in case it rings any bells.

{{{
Traceback (most recent call last):
  File ""/home/ben/Projects/myproject/src/manage.py"", line 20, in <module>
    execute_from_command_line(sys.argv)
  File ""/home/ben/Projects/myproject/env/src/django/django/core/management/__init__.py"", line 385, in execute_from_command_line
    utility.execute()
  File ""/home/ben/Projects/myproject/env/src/django/django/core/management/__init__.py"", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/home/ben/Projects/myproject/env/src/django/django/core/management/base.py"", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/home/ben/Projects/myproject/env/src/django/django/core/management/base.py"", line 337, in execute
    output = self.handle(*args, **options)
  File ""/home/ben/Projects/myproject/env/src/django/django/core/management/commands/makemigrations.py"", line 100, in handle
    convert_apps=app_labels or None,
  File ""/home/ben/Projects/myproject/env/src/django/django/db/migrations/autodetector.py"", line 37, in changes
    changes = self._detect_changes(convert_apps)
  File ""/home/ben/Projects/myproject/env/src/django/django/db/migrations/autodetector.py"", line 208, in _detect_changes
    for other_operation in self.generated_operations[dep[0]]:
KeyError: 'myapp'
}}}

I'm seeing if I can reproduce this in a test case as well."	Bug	closed	Migrations	dev	Release blocker	fixed		django@…	Accepted	0	0	0	0	0	0
