diff options
author | luxagraf <sng@luxagraf.net> | 2024-11-19 20:30:22 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-11-19 20:30:22 -0600 |
commit | 6744e821691cdbcfbd9f6cf583a62a90b5c4c6a5 (patch) | |
tree | 7115fbf3c6950fb3473d5e17b0bc5104f75270c2 /app/posts/views/essay_views.py | |
parent | befd652f9d47167ca56893c6b6d2dc70bd1a4c30 (diff) |
posts: got rid of range
Diffstat (limited to 'app/posts/views/essay_views.py')
-rw-r--r-- | app/posts/views/essay_views.py | 9 |
1 files changed, 5 insertions, 4 deletions
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): |