Skip to content

Commit

Permalink
Removed import for django <= 1.3 in query.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Apr 21, 2015
1 parent 67274c0 commit eeda0e5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions django_hstore/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@

from django import VERSION
from django.db import transaction
from django.utils import six
from django.db.models.query import QuerySet
from django.db.models.query_utils import QueryWrapper
from django.db.models.sql.constants import SINGLE
from django.db.models.sql.datastructures import EmptyResultSet
from django.db.models.sql.query import Query
from django.db.models.sql.subqueries import UpdateQuery
from django.db.models.sql.where import EmptyShortCircuit, WhereNode
from django.utils import six

from django_hstore.apps import GEODJANGO_INSTALLED
from django_hstore.utils import get_cast_for_param, get_value_annotations


try:
from django.db.models.query_utils import QueryWrapper # django >= 1.4
except ImportError:
from django.db.models.sql.where import QueryWrapper # django <= 1.3


def select_query(method):
def selector(self, *args, **params):
query = self.query.clone()
Expand Down

0 comments on commit eeda0e5

Please sign in to comment.