summaryrefslogtreecommitdiff
path: root/tests/model_meta/test_manager_inheritance_from_future.py
blob: 23594892833b272f63ca37943964aafbe3932ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.