diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-04-04 18:07:46 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-04-18 15:17:49 +0200 |
| commit | 8097e5483210fa8c9d6142f1d48e1caed6d7b7bb (patch) | |
| tree | dd7e2ecb4160e539d8e6c5045312d5ff8a89be9f /django/db/backends/base | |
| parent | f043434174db3432eb63c341573c1ea89ef59b91 (diff) | |
Fixed #23879 -- Allowed model migration skip based on feature/vendor
Thanks Carl Meyer for the report and review, and Tim Graham for the
review.
Diffstat (limited to 'django/db/backends/base')
| -rw-r--r-- | django/db/backends/base/creation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/base/creation.py b/django/db/backends/base/creation.py index a5e69ceedb..9bb9657b47 100644 --- a/django/db/backends/base/creation.py +++ b/django/db/backends/base/creation.py @@ -106,7 +106,7 @@ class BaseDatabaseCreation(object): # Make a function to iteratively return every object def get_objects(): for model in serializers.sort_dependencies(app_list): - if (not model._meta.proxy and model._meta.managed and + if (model._meta.can_migrate(self.connection) and router.allow_migrate_model(self.connection.alias, model)): queryset = model._default_manager.using(self.connection.alias).order_by(model._meta.pk.name) for obj in queryset.iterator(): |
