summaryrefslogtreecommitdiff
path: root/app/posts/views/essay_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/views/essay_views.py')
-rw-r--r--app/posts/views/essay_views.py9
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):