From 389892aae595b86c4be28c43e3312d76a68a0173 Mon Sep 17 00:00:00 2001 From: Marc Tamlyn Date: Wed, 23 Jan 2013 00:26:20 +0000 Subject: [PATCH] Remove dup_select_related method. This undocumented method was used in an old version of the admin, is totally untested and hails from 2008. Although it's listed in the "public methods" section, as it's not documented or used I don't think it needs a deprecation path. If we think it's useful I'll write some tests/docs for it instead... --- django/db/models/query.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/django/db/models/query.py b/django/db/models/query.py index 1c9a68a6772..68d7931729b 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -755,13 +755,6 @@ class QuerySet(object): clone._prefetch_related_lookups.extend(lookups) return clone - def dup_select_related(self, other): - """ - Copies the related selection status from the QuerySet 'other' to the - current QuerySet. - """ - self.query.select_related = other.query.select_related - def annotate(self, *args, **kwargs): """ Return a query set in which the returned objects have been annotated