From 9636d4a6767f49384d5c386bc3f1142c88b90613 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Tue, 13 Aug 2013 14:13:24 +0800 Subject: cloned from 'bitbucket', 2013/08/13 --- 97suifangqa/templatetags/__init__.py | 0 97suifangqa/templatetags/tools.py | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 97suifangqa/templatetags/__init__.py create mode 100644 97suifangqa/templatetags/tools.py (limited to '97suifangqa/templatetags') diff --git a/97suifangqa/templatetags/__init__.py b/97suifangqa/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/97suifangqa/templatetags/tools.py b/97suifangqa/templatetags/tools.py new file mode 100644 index 0000000..d4d9d0e --- /dev/null +++ b/97suifangqa/templatetags/tools.py @@ -0,0 +1,6 @@ +from django import template + +register = template.Library() +@register.filter +def get_range(count, start = 0): + return range(start, start + count) \ No newline at end of file -- cgit v1.2.2