diff options
author | luxagraf <sng@luxagraf.net> | 2024-07-24 16:37:26 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-07-24 16:37:26 -0500 |
commit | 88e0f0ac2bd5874256bf7e84fa460965bacdd761 (patch) | |
tree | c79a3cc81a2a85be809605b9042b00ca32db095c /app/utils/views.py | |
parent | 074ec1e21a7bfa867bbb2c35057c19b5cfc375c4 (diff) |
general update
Diffstat (limited to 'app/utils/views.py')
-rw-r--r-- | app/utils/views.py | 6 |
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: |