summaryrefslogtreecommitdiff
path: root/app/posts/views/film_views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-02-25 16:43:51 -0600
committerluxagraf <sng@luxagraf.net>2024-02-25 16:43:51 -0600
commit164eee8075761c46add169fe5631f45f1ec8746d (patch)
tree59118b702104e356e301bb86e6a6edb060311931 /app/posts/views/film_views.py
parentdfdfae5272f36f0b21ac895a880237a5c0e61f04 (diff)
jrnl: re-arranged to make Range a repository for everything.
Diffstat (limited to 'app/posts/views/film_views.py')
-rw-r--r--app/posts/views/film_views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/posts/views/film_views.py b/app/posts/views/film_views.py
index 3122240..48bdaa4 100644
--- a/app/posts/views/film_views.py
+++ b/app/posts/views/film_views.py
@@ -1,6 +1,7 @@
from django.views.generic import ListView
from django.views.generic.detail import DetailView
from django.contrib.syndication.views import Feed
+from django.urls import reverse
from django.apps import apps
from django.conf import settings
@@ -43,6 +44,8 @@ class FilmDetailView(LuxDetailView):
model = apps.get_model(obj.model_name.app_label, obj.model_name.model)
related.append(model.objects.get(slug=obj.slug, pub_date=obj.pub_date))
context['related'] = related
+ context['breadcrumbs'] = ('Range',)
+ context['crumb_url'] = reverse('range:range-list')
return context
def get_template_names(self):