summaryrefslogtreecommitdiff
path: root/gstudio/templatetags
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templatetags')
-rw-r--r--gstudio/templatetags/gstudio_tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gstudio/templatetags/gstudio_tags.py b/gstudio/templatetags/gstudio_tags.py
index a22715e..47dbbff 100644
--- a/gstudio/templatetags/gstudio_tags.py
+++ b/gstudio/templatetags/gstudio_tags.py
@@ -68,10 +68,10 @@ def get_metatypes(template='gstudio/tags/metatypes.html'):
@register.inclusion_tag('gstudio/tags/dummy.html')
-def get_authors(template='gstudio/tags/authors.html'):
+def get_authors(number=5, template='gstudio/tags/authors.html'):
"""Return the published authors"""
return {'template': template,
- 'authors': Author.published.all()}
+ 'authors': Author.published.all()[:number]}
@register.inclusion_tag('gstudio/tags/dummy.html')