Skip to content

Commit

Permalink
Fix rev_join_map usage as its removed from django 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
aburgel committed May 8, 2013
1 parent 59302fc commit 8d9eaf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbindexer/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ def unref_alias(query, alias):
table_name = query.alias_map[alias].table_name
query.alias_refcount[alias] -= 1
if query.alias_refcount[alias] < 1:
table, _, _, lhs, lhs_col, col, _ = query.alias_map[alias]
# Remove all information about the join
del query.alias_refcount[alias]
del query.join_map[query.rev_join_map[alias]]
del query.rev_join_map[alias]
del query.join_map[(lhs, table, lhs_col, col)]
del query.alias_map[alias]
query.tables.remove(alias)
query.table_map[table_name].remove(alias)
Expand Down

0 comments on commit 8d9eaf4

Please sign in to comment.