Skip to content

Commit

Permalink
Merge pull request #1 from vikingco/CP-121/django1.9-upgrade-incompat…
Browse files Browse the repository at this point in the history
…iblechanges

CP-121: Django 1.9 Upgrade: Final release (stage two)
  • Loading branch information
Johan Gabriels authored Jul 4, 2016
2 parents 67c8077 + c738768 commit 39909ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions django_statsd/patches/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def __init__(self, cache):
def __getattribute__(self, attr):
if attr == 'cache':
return BaseCache.__getattribute__(self, attr)
# Don't wrap default_timeout in a functools.partial object (see wrap)
# This ensures compatibility with django-parler 1.6 under Django 1.9
if attr == 'default_timeout':
return self.cache.default_timeout
return wrap(getattr(self.cache, attr), key(self.cache, attr))


Expand Down
2 changes: 1 addition & 1 deletion django_statsd/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import logging
import sys
import unittest

from django.conf import settings
from nose.exc import SkipTest
Expand All @@ -18,7 +19,6 @@
from django.test import TestCase
from django.test.client import RequestFactory
from django.utils import dictconfig
from django.utils import unittest

import mock
from nose.tools import eq_
Expand Down

0 comments on commit 39909ce

Please sign in to comment.