django1/tests/proxy_models
Loïc Bistuer ed0ff913c6 Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers.
This deprecates use_for_related_fields.

Old API:

class CustomManager(models.Model):
    use_for_related_fields = True

class Model(models.Model):
    custom_manager = CustomManager()

New API:

class Model(models.Model):
    custom_manager = CustomManager()

    class Meta:
        base_manager_name = 'custom_manager'

Refs #20932, #25897.

Thanks Carl Meyer for the guidance throughout this work.
Thanks Tim Graham for writing the docs.
2016-05-17 12:07:22 +07:00
..
fixtures Converted test fixtures to setUpTestData methods 2015-03-05 10:10:32 +11:00
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
admin.py Updated tests to stop leaking models in shared AdminSite. 2015-04-15 09:45:26 -04:00
models.py Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers. 2016-05-17 12:07:22 +07:00
tests.py Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
urls.py Fixed #21927 -- Made application and instance namespaces more distinct. 2015-06-08 15:12:20 -04:00