From 720ff740e70e649a97fcf0232fec132569a52c7e Mon Sep 17 00:00:00 2001 From: Alex Hill Date: Tue, 3 Mar 2015 16:43:56 +0800 Subject: Fixed #24215 -- Refactored lazy model operations This adds a new method, Apps.lazy_model_operation(), and a helper function, lazy_related_operation(), which together supersede add_lazy_relation() and make lazy model operations the responsibility of the App registry. This system no longer uses the class_prepared signal. --- docs/internals/deprecation.txt | 2 ++ docs/releases/1.9.txt | 2 ++ 2 files changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index abce521d75..494f482828 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -30,6 +30,8 @@ details on these changes. * ``Field.remote_field.to`` attribute will be removed. +* ``django.db.models.fields.add_lazy_relation`` will be removed. + .. _deprecation-removed-in-2.0: 2.0 diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt index 9f15e9151a..3626cd0a40 100644 --- a/docs/releases/1.9.txt +++ b/docs/releases/1.9.txt @@ -372,6 +372,8 @@ Miscellaneous :class:`~django.forms.SelectDateWidget` in ``django.forms.widgets`` (or simply ``django.forms``) instead. +* Private API ``django.db.models.fields.add_lazy_relation()`` is deprecated. + .. removed-features-1.9: Features removed in 1.9 -- cgit v1.3