Skip to content

Commit e8cf07b

Browse files
authored
Merge pull request #19 from adepue/master
Move pylibmc behaviors into sub behaviors key
2 parents ea4dde4 + 7b01099 commit e8cf07b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django_elasticache/memcached.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ def _cache(self):
9494

9595
client = self._lib.Client(self.get_cluster_nodes())
9696
if self._options:
97-
client.behaviors = self._options
97+
# In Django 1.11, all behaviors are shifted into a behaviors dict
98+
# Attempt to get from there, and fall back to old behavior if the behaviors
99+
# key does not exist
100+
client.behaviors = self._options.get('behaviors', self._options)
98101

99102
container._client = client
100103

0 commit comments

Comments
 (0)