More tags on sitemap
parent
c90c61d782
commit
a364ffe52b
2
views.py
2
views.py
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue