django-polymorphic/polymorphic/tests
Diederik van der Boor f898f80594 Fixed unwanted manager replacement in Django 1.11 projects.
Django 1.11 uses the old manager inheritance system, unless it's
overwritten with manager_inheritance_from_future. With a class layout
like:

  PolymorphicModel  (abstract)
    PolymorphicMPTTModel  (abstract)
      GenericCustomer  (concrete, has objects = ...)
        CustomerGroupBase (abstract, has objects = ...)
          Partner (concrete, no manager)
            BranchPartner  (concrete, no manager)

The last level gets a normal Django Manager instead of the polymorphic
manager. Because the PolymorphicModel had a base_objects manager, this
was typically used as _default_manager. Now that the default manager is
no longer affected, it's also easier to detect why the "objects" doesn't
get the proper manager type. Using "manager_inheritance_from_future" is
recommended instead to have both the right behavior and forward
Django 2.x compatibility.
2018-02-04 13:22:51 +01:00
..
migrations Amend PR #336: fix migration file syntax for Django 1.10 2018-01-15 15:08:14 +01:00
__init__.py Move test models into models.py and add migrations 2017-09-06 19:47:18 -03:00
admintestcase.py Fix deprecated admin site URL in tests 2018-01-16 10:53:34 +00:00
models.py Fixed unwanted manager replacement in Django 1.11 projects. 2018-02-04 13:22:51 +01:00
test_admin.py Add admin history, add type, and add page tests 2017-09-30 18:33:19 +02:00
test_contrib.py Update a bunch of failing tests 2017-09-06 20:06:25 -03:00
test_multidb.py Update a bunch of failing tests 2017-09-06 20:06:25 -03:00
test_orm.py Use assertRegex to ignore object IDs 2018-01-17 22:02:19 +00:00
test_regression.py Update a bunch of failing tests 2017-09-06 20:06:25 -03:00
test_utils.py Added `get_base_polymorphic_model()` to detect the common base class for a polymorphic model. 2017-09-30 16:21:21 +02:00