More tags on sitemap

master
Nick Sergeant 2012-06-20 11:23:27 -04:00
parent c90c61d782
commit a364ffe52b
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ def sitemap(request):
tags = Tag.objects.filter(snipt__public=True)
tags = tags.annotate(count=Count('taggit_taggeditem_items__id'))
tags = tags.order_by('-count')[:20]
tags = tags.order_by('-count')[:50]
tags = sorted(tags, key=lambda tag: tag.name)
return render_to_response('sitemap.xml',