mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
[1.8.x] Removed query.alias_diff()
This function is unused since6fe2b001db
Backport off79ce63fdb
from master
This commit is contained in:
parent
6d0538bd8c
commit
3cd8f51f21
@ -2050,17 +2050,6 @@ def is_reverse_o2o(field):
|
|||||||
return not hasattr(field, 'rel') and field.field.unique
|
return not hasattr(field, 'rel') and field.field.unique
|
||||||
|
|
||||||
|
|
||||||
def alias_diff(refcounts_before, refcounts_after):
|
|
||||||
"""
|
|
||||||
Given the before and after copies of refcounts works out which aliases
|
|
||||||
have been added to the after copy.
|
|
||||||
"""
|
|
||||||
# Use -1 as default value so that any join that is created, then trimmed
|
|
||||||
# is seen as added.
|
|
||||||
return set(t for t in refcounts_after
|
|
||||||
if refcounts_after[t] > refcounts_before.get(t, -1))
|
|
||||||
|
|
||||||
|
|
||||||
class JoinPromoter(object):
|
class JoinPromoter(object):
|
||||||
"""
|
"""
|
||||||
A class to abstract away join promotion problems for complex filter
|
A class to abstract away join promotion problems for complex filter
|
||||||
|
Loading…
Reference in New Issue
Block a user