Commit 7f69fc20 by Alex Gaynor

Fixed 1.1 compat, thanks cleifer.

parent 9bed0325
...@@ -15,7 +15,15 @@ try: ...@@ -15,7 +15,15 @@ try:
all all
except NameError: except NameError:
# 2.4 compat # 2.4 compat
try:
from django.utils.itercompat import all from django.utils.itercompat import all
except ImportError:
# 1.1.X compat
def all(iterable):
for item in iterable:
if not item:
return False
return True
class TaggableRel(ManyToManyRel): class TaggableRel(ManyToManyRel):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment