id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
167,deleting the last model of an application fails,jbar@…,andrew,"Then, the application's models are not in app_models and the migration fails with:

{{{
While loading migration 'myapp.0001_initial':
Traceback (most recent call last):
...
  File ""/home/jbar/.virtualenvs/myprj/src/south/south/orm.py"", line 62, in __init__
    self.models[name.lower()] = self.make_model(app_name, model_name, data)
  File ""/home/jbar/.virtualenvs/myprj/src/south/south/orm.py"", line 206, in make_model
    cache.app_models[app], old_app_models = {}, cache.app_models[app]
KeyError: 'myapp'
}}}


{{{ startmigration --auto }}} or {{{ migrate 0002 }}} fail with the message above.

Cheers,
Jiri
",defect,closed,major,0.6,migrations,0.6-pre,fixed,delete model,
