summaryrefslogtreecommitdiff
path: root/app/utils/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils/views.py')
-rw-r--r--app/utils/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/utils/views.py b/app/utils/views.py
index b678a33..76f1574 100644
--- a/app/utils/views.py
+++ b/app/utils/views.py
@@ -14,9 +14,9 @@ from media.models import LuxImage, LuxVideo, LuxAudio
BREADCRUMBS = {
'AP':'dialogue',
'Book':'Book Notes',
- 'Entry':'Jrnl',
'NewsletterMailing':'lttr',
'LuxImage':'lttr',
+ 'Sighting':'dialogue'
}
class PaginatedListView(ListView):
@@ -53,16 +53,16 @@ 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:
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: