diff options
author | luxagraf <sng@luxagraf.net> | 2016-03-31 09:52:45 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-03-31 09:52:45 -0400 |
commit | e6ea31a213da6306caa0392c8d18c2d0ac0111db (patch) | |
tree | 23a5bdd55c74b975a071f5350dfbc23dac1bbcca /app/src/views.py | |
parent | de69d12ea824450a61a9621a0092739cc1fb6d8b (diff) |
Added migrations for src so I can rename Entry to Post. Changed
syndication file name
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] |