Son of a bitch leaky call to snipts pre-pagination.

master
Nick Sergeant 2013-07-31 20:17:05 -04:00
parent 991ed97981
commit 2a151ee919
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
<li class="rss">
<a href="{{ request.path }}?rss">RSS</a>
</li>
{% if snipts %}
{% if has_snipts %}
<li class="compact">
<a ng-click="compactView=true" href>Compact</a>
</li>

View File

@ -153,7 +153,7 @@ def list_public(request, tag_slug=None):
if request.blog_user:
return blog_list(request)
snipts = Snipt.objects.filter(public=True).order_by('-created')[:100]
snipts = Snipt.objects.filter(public=True).order_by('-created')
if tag_slug:
snipts = snipts.filter(tags__slug__in=[tag_slug])