From da1de1615c4d498d7de015dc0028ad4be220df15 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 27 Dec 2018 20:59:10 -0500 Subject: [PATCH] Refs #28750 -- Removed suppport for model Meta.manager_inheritance_from_future. --- django/db/models/options.py | 2 -- .../test_manager_inheritance_from_future.py | 15 --------------- 2 files changed, 17 deletions(-) delete mode 100644 tests/model_meta/test_manager_inheritance_from_future.py diff --git a/django/db/models/options.py b/django/db/models/options.py index 98bd2f0064..b8b48cddac 100644 --- a/django/db/models/options.py +++ b/django/db/models/options.py @@ -33,8 +33,6 @@ DEFAULT_NAMES = ( 'select_on_save', 'default_related_name', 'required_db_features', 'required_db_vendor', 'base_manager_name', 'default_manager_name', 'indexes', 'constraints', - # For backwards compatibility with Django 1.11. RemovedInDjango30Warning - 'manager_inheritance_from_future', ) diff --git a/tests/model_meta/test_manager_inheritance_from_future.py b/tests/model_meta/test_manager_inheritance_from_future.py deleted file mode 100644 index 2359489283..0000000000 --- a/tests/model_meta/test_manager_inheritance_from_future.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.db import models -from django.test import SimpleTestCase -from django.test.utils import isolate_apps - - -@isolate_apps('model_meta') -class TestManagerInheritanceFromFuture(SimpleTestCase): - def test_defined(self): - """ - Meta.manager_inheritance_from_future can be defined for backwards - compatibility with Django 1.11. - """ - class FuturisticModel(models.Model): - class Meta: - manager_inheritance_from_future = True # No error raised.