mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-23 11:45:49 +00:00
Fixes Python 3 compatibility.
This commit is contained in:
parent
ba34e6c1c6
commit
4ae8bccf96
1 changed files with 1 additions and 2 deletions
|
|
@ -3,7 +3,6 @@
|
|||
from __future__ import unicode_literals
|
||||
from hashlib import sha1
|
||||
from time import time
|
||||
from types import NoneType
|
||||
|
||||
import django
|
||||
from django.db import connections
|
||||
|
|
@ -24,7 +23,7 @@ class UncachableQuery(Exception):
|
|||
pass
|
||||
|
||||
|
||||
CACHABLE_PARAM_TYPES = (bool, int, binary_type, text_type, NoneType)
|
||||
CACHABLE_PARAM_TYPES = (bool, int, binary_type, text_type, type(None))
|
||||
|
||||
def get_query_cache_key(compiler):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue