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 f501637..f929949 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 Post, Topic, Book +from .models import SrcPost, Topic, Book class BookListView(ListView): @@ -47,7 +47,7 @@ class BookDetailView(DetailView): class SrcListView(ListView): def get_queryset(self): - return Post.objects.filter(status__exact=1) + return SrcPost.objects.filter(status__exact=1) def get_context_data(self, **kwargs): # Call the base implementation first to get a context @@ -57,7 +57,7 @@ class SrcListView(ListView): class EntryDetailView(DetailView): - model = Post + model = SrcPost slug_field = "slug" @@ -69,7 +69,7 @@ class TopicListView(ListView): template_name = 'src/topic_list.html' def get_queryset(self): - return Post.objects.filter(topics__slug=self.kwargs['slug']) + return SrcPost.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 Post.objects.filter(status__exact=1).order_by('-pub_date')[:10] + return SrcPost.objects.filter(status__exact=1).order_by('-pub_date')[:10] |