1
0
mirror of https://github.com/django/django.git synced 2025-01-14 12:27:24 +00:00
django/docs/topics
Loïc Bistuer ed0ff913c6 Fixed , , , -- 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 , .

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
auth Refs -- Normalized unicode username inputs 2016-05-16 19:38:02 +02:00
class-based-views
db Fixed , , , -- Introduced new APIs to specify models' default and base managers. 2016-05-17 12:07:22 +07:00
forms
http Refs -- Corrected a sentence for conditional_content_removal() removal. 2016-05-11 11:09:28 -04:00
i18n
testing Refs -- Used hanging indentation in some doc examples. 2016-05-14 19:06:31 -04:00
cache.txt
checks.txt
conditional-view-processing.txt Fixed typo in docs/topics/conditional-view-processing.txt 2016-05-12 20:07:34 -04:00
email.txt
external-packages.txt
files.txt Fixed -- Updated docs.python.org links to use Intersphinx. 2016-05-08 18:07:43 -04:00
index.txt
install.txt
logging.txt Fixed -- Updated docs.python.org links to use Intersphinx. 2016-05-08 18:07:43 -04:00
migrations.txt
pagination.txt
performance.txt
python3.txt Fixed -- Updated docs.python.org links to use Intersphinx. 2016-05-08 18:07:43 -04:00
security.txt
serialization.txt Fixed -- Updated docs.python.org links to use Intersphinx. 2016-05-08 18:07:43 -04:00
settings.txt
signals.txt
signing.txt
templates.txt