From 6744e821691cdbcfbd9f6cf583a62a90b5c4c6a5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 19 Nov 2024 20:30:22 -0600 Subject: posts: got rid of range --- app/posts/views/essay_views.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'app/posts/views/essay_views.py') diff --git a/app/posts/views/essay_views.py b/app/posts/views/essay_views.py index 6437543..453f068 100644 --- a/app/posts/views/essay_views.py +++ b/app/posts/views/essay_views.py @@ -25,7 +25,7 @@ class EssayListView(PaginatedListView): ''' # Call the base implementation first to get a context context = super(EssayListView, self).get_context_data(**kwargs) - context['breadcrumbs'] = ('Essay',) + context['breadcrumbs'] = ('Essays',) return context @@ -48,7 +48,8 @@ class EssayCategoryList(PaginatedListView): # Call the base implementation first to get a context context = super(EssayCategoryList, self).get_context_data(**kwargs) print(self.topic) - context['breadcrumbs'] = ('Essay',) + context['breadcrumbs'] = ('Essays', self.topic) + context['crumb_url'] = '/essays/' context['topic'] = self.topic return context @@ -68,8 +69,8 @@ class EssayDetailView(LuxDetailView): model = apps.get_model(obj.model_name.app_label, obj.model_name.model) related.append(model.objects.get(slug=obj.slug, pub_date=obj.pub_date)) context['related'] = related - context['breadcrumbs'] = ('Range',) - context['crumb_url'] = reverse('range:list') + context['breadcrumbs'] = ('Essays',) + context['crumb_url'] = '/essays/' return context def get_template_names(self): -- cgit v1.2.3-70-g09d2