aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/templatetags
diff options
context:
space:
mode:
authorAlvin Li <liweitianux@gmail.com>2013-08-13 14:13:24 +0800
committerAlvin Li <liweitianux@gmail.com>2013-08-13 14:13:24 +0800
commit9636d4a6767f49384d5c386bc3f1142c88b90613 (patch)
tree3a70f6d9e4be1791d36c87cc7cbfd1d5aa2b39dd /97suifangqa/templatetags
parent9383d9a8a5988d071766c3d08a5c946e9c5b02ae (diff)
download97dev-9636d4a6767f49384d5c386bc3f1142c88b90613.tar.bz2
cloned from 'bitbucket', 2013/08/13
Diffstat (limited to '97suifangqa/templatetags')
-rw-r--r--97suifangqa/templatetags/__init__.py0
-rw-r--r--97suifangqa/templatetags/tools.py6
2 files changed, 6 insertions, 0 deletions
diff --git a/97suifangqa/templatetags/__init__.py b/97suifangqa/templatetags/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/97suifangqa/templatetags/__init__.py
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