summaryrefslogtreecommitdiff
path: root/app/utils
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-12-29 19:16:22 -0600
committerluxagraf <sng@luxagraf.net>2022-12-29 19:16:22 -0600
commit171e38c61daced0b97081a226bc2beb215730509 (patch)
tree4d053e7a9abaab02ca44788c2a3e8f1f1e0843ba /app/utils
parentb6613deaa9c18887c442a6275290c1e8c25a5f1f (diff)
posts: changed essays to notes. less pretentious.
Diffstat (limited to 'app/utils')
-rw-r--r--app/utils/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/utils/views.py b/app/utils/views.py
index b337cc5..3422d1e 100644
--- a/app/utils/views.py
+++ b/app/utils/views.py
@@ -54,7 +54,6 @@ class LuxDetailView(DetailView):
'''
# Call the base implementation first to get a context
context = super(LuxDetailView, self).get_context_data(**kwargs)
- print(self.object._meta.verbose_name_plural)
try:
context['breadcrumbs'] = (BREADCRUMBS[self.object._meta.label.split(".")[1]],)
except KeyError:
@@ -66,9 +65,11 @@ class LuxDetailView(DetailView):
context['crumb_url'] = "/%ss/" % slugify(self.object.get_post_type_display())
else:
context['breadcrumbs'] = (self.object._meta.verbose_name_plural,)
+ print(context['crumb_url'])
try:
context['crumb_url']
except KeyError:
+ print("something")
try:
context['crumb_url'] = reverse('%s:list' % slugify(self.object._meta.verbose_name_plural))
except: