diff options
author | Jonas Genannt <genannt@debian.org> | 2015-11-15 22:25:54 +0100 |
---|---|---|
committer | Jonas Genannt <genannt@debian.org> | 2015-11-15 22:25:54 +0100 |
commit | 24cd0a91184be6fa20168f9b132b1ab3f5911949 (patch) | |
tree | 9577a4d01ab2b613757875dab7b7d8b1acb64b48 /tagging/models.py | |
parent | 0b15d7564b3ceca4faebfc93401daa99102c241c (diff) | |
download | python-django-tagging-24cd0a91184be6fa20168f9b132b1ab3f5911949.tar python-django-tagging-24cd0a91184be6fa20168f9b132b1ab3f5911949.tar.gz |
reset patches that are included by the git migration
Diffstat (limited to 'tagging/models.py')
-rw-r--r-- | tagging/models.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tagging/models.py b/tagging/models.py index e13b077..860cf81 100644 --- a/tagging/models.py +++ b/tagging/models.py @@ -17,8 +17,6 @@ from tagging import settings from tagging.utils import calculate_cloud, get_tag_list, get_queryset_and_model, parse_tag_input from tagging.utils import LOGARITHMIC -import collections - qn = connection.ops.quote_name ############ @@ -168,16 +166,9 @@ class TagManager(models.Manager): # Django 1.2+ compiler = queryset.query.get_compiler(using='default') extra_joins = ' '.join(compiler.get_from_clause()[0][1:]) - if isinstance(compiler, collections.Callable): - # Django 1.7+ - where, params = queryset.query.where.as_sql( - compiler, compiler.connection - ) - else: - # Django 1.2-1.6 - where, params = queryset.query.where.as_sql( - compiler.quote_name_unless_alias, compiler.connection - ) + where, params = queryset.query.where.as_sql( + compiler.quote_name_unless_alias, compiler.connection + ) else: # Django pre-1.2 extra_joins = ' '.join(queryset.query.get_from_clause()[0][1:]) |