toastdriven/django-tastypie — pull request #1012 by stefanw (2013-08-19 13:53:36+00:00)
Title: Add more User model Meta information to migrations

This gives more meta information like e.g. `db_table` to the the Meta field of the `AUTH_USER_MODEL` in the frozen migration models. [The frozen Meta attributes are explained here](http://south.readthedocs.org/en/latest/ormfreezing.html#frozen-meta-attributes).

I had problems migrating because the Meta information in the frozen models did not have the `db_table` attribute. South then tried to setup an incorrect ForeignKey and ended up with `django.db.utils.ProgrammingError: relation "account_user" does not exist`.

I'm not sure this is the right approach, though. One could argue that the User model can't be properly frozen in tastypie anyways, as it might be completely different. However, maybe this works alright for a common case.

(Also: I don't think `get_model_meta` of South is a public API.)

If this is not worth including, may it serve as a guide for others to fix their migration.