aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils/functional.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-16 22:14:41 +0200
committerAymeric Augustin2013-10-17 18:24:57 +0200
commitc1f39b1a168d535e0b90d3c69273e391adf22637 (patch)
tree9ae12cb257585e4681edea253209d9c150f3731a /debug_toolbar/utils/functional.py
parent79831e4053b472921621f288483e95a961a4d142 (diff)
downloaddjango-debug-toolbar-c1f39b1a168d535e0b90d3c69273e391adf22637.tar.bz2
Remove compatibility code for unsupported version of Django.
Diffstat (limited to 'debug_toolbar/utils/functional.py')
-rw-r--r--debug_toolbar/utils/functional.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/debug_toolbar/utils/functional.py b/debug_toolbar/utils/functional.py
deleted file mode 100644
index 1dbb734..0000000
--- a/debug_toolbar/utils/functional.py
+++ /dev/null
@@ -1,14 +0,0 @@
-try:
- from django.utils.functional import cached_property
-except ImportError: # Django < 1.4
- class cached_property(object):
- """
- Decorator that creates converts a method with a single
- self argument into a property cached on the instance.
- """
- def __init__(self, func):
- self.func = func
-
- def __get__(self, instance, type):
- res = instance.__dict__[self.func.__name__] = self.func(instance)
- return res