1
0
mirror of https://github.com/django/django.git synced 2025-01-10 18:36:05 +00:00
django/docs/internals
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
..
_images
contributing Refs #26033 -- Added password hasher support for Argon2 v1.3. 2016-04-25 21:17:53 -04:00
deprecation.txt Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers. 2016-05-17 12:07:22 +07:00
git.txt
howto-release-django.txt Fixed typos in docs. 2016-03-13 19:48:24 +01:00
index.txt Fixed #26020 -- Normalized header stylings in docs. 2016-01-22 12:12:17 -05:00
mailing-lists.txt Fixed #26020 -- Normalized header stylings in docs. 2016-01-22 12:12:17 -05:00
organization.txt
release-process.txt Minor fixes for release-process doc fix 2016-02-28 19:30:18 +02:00
roles.txt
security.txt Fixed #26020 -- Normalized header stylings in docs. 2016-01-22 12:12:17 -05:00
team.txt Fixed #26554 -- Updated docs URLs to readthedocs.io 2016-04-28 10:09:57 -04:00