magic-removal: Refs #1346 -- Removed some redundant code that was missed in the checkin for r2381.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4708aee311
commit
86a6ce8983
|
@ -288,14 +288,6 @@ class ReverseManyRelatedObjectsDescriptor(object):
|
||||||
|
|
||||||
class RelatedManager(superclass):
|
class RelatedManager(superclass):
|
||||||
def get_query_set(self):
|
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))
|
return superclass.get_query_set(self).filter(**(self.core_filters))
|
||||||
|
|
||||||
def add(self, *objs, **kwargs):
|
def add(self, *objs, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue