Legend:

A [https://github.com/django/django/pull/4630/ documentation patch] has been proposed based on comment 38's approach of conditionally adding migration operations based on the database name. I don't think this approach is something we should officially recommend. I'd rather wait for a proper solution. One idea is a `@test_model` model class decorator that the migrations system respects.

1

A [https://github.com/django/django/pull/4700/ documentation patch] has been proposed based on comment 38's approach of conditionally adding migration operations based on the database name. I don't think this approach is something we should officially recommend. I'd rather wait for a proper solution. One idea is a `@test_model` model class decorator that the migrations system respects.