mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-23 11:45:49 +00:00
Handles IP address caching with PostgreSQL.
This commit is contained in:
parent
7e3e1dabb9
commit
ce29686429
1 changed files with 3 additions and 3 deletions
|
|
@ -26,13 +26,13 @@ CACHABLE_PARAM_TYPES = {
|
|||
}
|
||||
|
||||
try:
|
||||
from psycopg2._range import (
|
||||
NumericRange, DateRange, DateTimeRange, DateTimeTZRange)
|
||||
from psycopg2.extras import (
|
||||
NumericRange, DateRange, DateTimeRange, DateTimeTZRange, Inet)
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
CACHABLE_PARAM_TYPES.update((
|
||||
NumericRange, DateRange, DateTimeRange, DateTimeTZRange))
|
||||
NumericRange, DateRange, DateTimeRange, DateTimeTZRange, Inet))
|
||||
|
||||
|
||||
def check_parameter_types(params):
|
||||
|
|
|
|||
Loading…
Reference in a new issue