Skip to content

Commit

Permalink
determines decode with django version
Browse files Browse the repository at this point in the history
  • Loading branch information
Koed00 committed Sep 7, 2015
1 parent e899b93 commit 2078080
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions django_q/models.py
Expand Up @@ -189,10 +189,10 @@ class Meta:


# Backwards compatibility for Django 1.7
if get_version().split('.')[1] == '8':
def decode_results(values):
return values
else:
# decode values in 1.7
def decode_results(values):
def decode_results(values):
if get_version().split('.')[1] == '7':
# decode values in 1.7
return [dbsafe_decode(v) for v in values]
return values


0 comments on commit 2078080

Please sign in to comment.