Son of a bitch leaky call to snipts pre-pagination.
parent
991ed97981
commit
2a151ee919
|
@ -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>
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue