From 6e5897117124cd60ae81efb1574c6347f48e60e5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 4 Jul 2023 11:13:11 -0500 Subject: fixed a bug with breadcrumb urls and src section --- app/utils/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/utils') diff --git a/app/utils/views.py b/app/utils/views.py index 5b1e4fd..19ada6f 100644 --- a/app/utils/views.py +++ b/app/utils/views.py @@ -60,9 +60,10 @@ class LuxDetailView(DetailView): if self.object._meta.verbose_name_plural == 'posts': if self.object.get_post_type_display() != 'src': context['breadcrumbs'] = (self.object.get_post_type_display()+"s",) + context['crumb_url'] = "/%ss/" % slugify(self.object.get_post_type_display()) else: context['breadcrumbs'] = (self.object.get_post_type_display(),) - context['crumb_url'] = "/%ss/" % slugify(self.object.get_post_type_display()) + context['crumb_url'] = "/%s/" % slugify(self.object.get_post_type_display()) else: context['breadcrumbs'] = (self.object._meta.verbose_name_plural,) try: -- cgit v1.2.3-70-g09d2