Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
  • Loading branch information...
commit 389892aae595b86c4be28c43e3312d76a68a0173 1 parent 214fb70
Marc Tamlyn authored January 23, 2013

Showing 1 changed file with 0 additions and 7 deletions. Show diff stats Hide diff stats

  1. 7  django/db/models/query.py
7  django/db/models/query.py
@@ -755,13 +755,6 @@ def prefetch_related(self, *lookups):
755 755
             clone._prefetch_related_lookups.extend(lookups)
756 756
         return clone
757 757
 
758  
-    def dup_select_related(self, other):
759  
-        """
760  
-        Copies the related selection status from the QuerySet 'other' to the
761  
-        current QuerySet.
762  
-        """
763  
-        self.query.select_related = other.query.select_related
764  
-
765 758
     def annotate(self, *args, **kwargs):
766 759
         """
767 760
         Return a query set in which the returned objects have been annotated

0 notes on commit 389892a

Please sign in to comment.
Something went wrong with that request. Please try again.