diff options
author | luxagraf <sng@luxagraf.net> | 2023-07-04 11:13:11 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-07-04 11:13:11 -0500 |
commit | 6e5897117124cd60ae81efb1574c6347f48e60e5 (patch) | |
tree | c3ae45055df81a1eca8aa8f07426e396d555831d /app/utils | |
parent | 58b68613db4e463d584fd9913f864df316881b3c (diff) |
fixed a bug with breadcrumb urls and src section
Diffstat (limited to 'app/utils')
-rw-r--r-- | app/utils/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |