We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea4dde4 + 7b01099 commit e8cf07bCopy full SHA for e8cf07b
django_elasticache/memcached.py
@@ -94,7 +94,10 @@ def _cache(self):
94
95
client = self._lib.Client(self.get_cluster_nodes())
96
if self._options:
97
- client.behaviors = self._options
+ # 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)
101
102
container._client = client
103
0 commit comments