1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00
django/docs/ref/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
..
class.txt
conditional-expressions.txt Fixed #26124 -- Added missing code formatting to docs headers. 2016-02-01 10:42:05 -05:00
database-functions.txt Fixed #24932 -- Added Cast database function. 2016-03-29 08:14:33 -04:00
expressions.txt Normalized "an SQL" spelling. 2016-05-03 19:30:48 -04:00
fields.txt Fixed #26508 -- Clarified docs for various FieldFile methods. 2016-05-07 12:16:42 -04:00
index.txt
instances.txt Fixed #26483 -- Updated docs.python.org links to use Intersphinx. 2016-05-08 18:07:43 -04:00
lookups.txt Refs #25759 -- Documented customizing expressions' SQL on other databases. 2016-03-21 20:20:29 -04:00
meta.txt Fixed typos in docs/ref/models/meta.txt. 2016-03-01 08:33:27 -05:00
options.txt Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers. 2016-05-17 12:07:22 +07:00
querysets.txt Refs #26021 -- Used hanging indentation in some doc examples. 2016-05-14 19:06:31 -04:00
relations.txt Fixed #26020 -- Normalized header stylings in docs. 2016-01-22 12:12:17 -05:00