summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/posts/views/guide_views.py5
-rw-r--r--design/templates/admin/index.html4
2 files changed, 5 insertions, 4 deletions
diff --git a/app/posts/views/guide_views.py b/app/posts/views/guide_views.py
index 767a262..e2f98f3 100644
--- a/app/posts/views/guide_views.py
+++ b/app/posts/views/guide_views.py
@@ -35,12 +35,13 @@ class ReviewsListView(GuideListView):
return context
-class EssayListView(GuideListView):
+class EssayListView(PaginatedListView):
+ model = Post
template_name = "posts/essay_list.html"
def get_queryset(self):
queryset = super(EssayListView, self).get_queryset()
- return queryset.filter(post_type__in=[2,]).filter(status__exact=1).order_by('-pub_date').prefetch_related('location').prefetch_related('featured_image')
+ return queryset.filter(site__domain='luxagraf.net').filter(post_type__in=[PostType.ESSAY]).filter(status__exact=1).order_by('-pub_date').prefetch_related('location').prefetch_related('featured_image')
def get_context_data(self, **kwargs):
'''
diff --git a/design/templates/admin/index.html b/design/templates/admin/index.html
index 3514138..b4ac678 100644
--- a/design/templates/admin/index.html
+++ b/design/templates/admin/index.html
@@ -48,8 +48,8 @@ td, th {
{% block content %}
<div id="content-main">
<ul class="faux-btns">
- <li><a href="https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net">lxf awstats</a></li>
- <li><a href="https://stats.luxagraf.net/">lxf stats</a></li>
+ <li><a href="https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net" target="_blank">lxf awstats</a></li>
+ <li><a href="https://stats.luxagraf.net/" target="_blank">lxf stats</a></li>
<li><a href="/admin/build/build?id=buildbooks">Build Books</a></li>
<li><a href="/admin/build/build?id=pubs">Build Publications</a></li>
<li><a href="/admin/build/build?id=resume">Build Resume</a></li>