diff options
Diffstat (limited to '97suifangqa/apps/sciblog')
-rw-r--r-- | 97suifangqa/apps/sciblog/templatetags/tools.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/97suifangqa/apps/sciblog/templatetags/tools.py b/97suifangqa/apps/sciblog/templatetags/tools.py new file mode 100644 index 0000000..9ed90c2 --- /dev/null +++ b/97suifangqa/apps/sciblog/templatetags/tools.py @@ -0,0 +1,7 @@ +from django import template + +register = template.Library() +@register.filter +def get_range(count, start = 0): + return range(start, start + count) + |