Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Refs #1346 -- Removed some redundant code that was mis…

…sed in the checkin for r2381.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 86a6ce8983291b99af97efaa61f733f0f5078c5d 1 parent 4708aee
@freakboy3742 freakboy3742 authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 django/db/models/fields/related.py
View
8 django/db/models/fields/related.py
@@ -288,14 +288,6 @@ def __get__(self, instance, instance_type=None):
class RelatedManager(superclass):
def get_query_set(self):
- return superclass.get_query_set(self).extra(
- tables=(join_table,),
- where=[
- '%s.%s = %s.%s' % (qn(rel_opts.db_table), qn(rel_opts.pk.column), join_table, target_col_name),
- '%s.%s = %%s' % (join_table, source_col_name)
- ],
- params = [instance._get_pk_val()]
- )
return superclass.get_query_set(self).filter(**(self.core_filters))
def add(self, *objs, **kwargs):
Please sign in to comment.
Something went wrong with that request. Please try again.