diff options
Diffstat (limited to 'app/src/views.py')
-rw-r--r-- | app/src/views.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/views.py b/app/src/views.py index 85a5242..f2466eb 100644 --- a/app/src/views.py +++ b/app/src/views.py @@ -6,7 +6,7 @@ from django.conf import settings from paypal.standard.forms import PayPalPaymentsForm -from .models import Entry, Topic, Book +from .models import Post, Topic, Book class BookListView(ListView): @@ -48,11 +48,11 @@ class SrcListView(ListView): template_name = "archives/src_home.html" def queryset(self): - return Entry.objects.filter(status__exact=1) + return Post.objects.filter(status__exact=1) class EntryDetailView(DetailView): - model = Entry + model = Post template_name = "details/src_entry.html" slug_field = "slug" @@ -69,7 +69,7 @@ class TopicListView(ListView): template_name = 'archives/src_home.html' def queryset(self): - return Entry.objects.filter(topics__slug=self.kwargs['slug']) + return Post.objects.filter(topics__slug=self.kwargs['slug']) def get_context_data(self, **kwargs): # Call the base implementation first to get a context @@ -85,4 +85,4 @@ class SrcRSSFeedView(Feed): description_template = 'feeds/blog_description.html' def items(self): - return Entry.objects.filter(status__exact=1).order_by('-pub_date')[:10] + return Post.objects.filter(status__exact=1).order_by('-pub_date')[:10] |