diff options
author | luxagraf <sng@luxagraf> | 2021-01-30 17:41:42 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-01-30 17:41:42 -0500 |
commit | e36adb590425ee6fb15a03ef690b6a279c49250a (patch) | |
tree | 533ee7cd8cb26bcca8e7a69a639ec0aacb8d8c9c /app/posts/views/field_note_views.py | |
parent | c7fee3786a0221fb3a7032491b0a2d512f0b27c4 (diff) |
views: cleaned up some view code and streamlined breadcrumbs
Diffstat (limited to 'app/posts/views/field_note_views.py')
-rw-r--r-- | app/posts/views/field_note_views.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/posts/views/field_note_views.py b/app/posts/views/field_note_views.py index e635ac5..15ce3ff 100644 --- a/app/posts/views/field_note_views.py +++ b/app/posts/views/field_note_views.py @@ -13,6 +13,14 @@ class FieldNoteListView(PaginatedListView): Return a list of Notes in reverse chronological order """ queryset = Post.objects.filter(post_type=PostType.FIELD_NOTE,status=1).order_by('-pub_date') + + def get_context_data(self, **kwargs): + ''' + Add breadcrumb path + ''' + context = super(FieldNoteListView, self).get_context_data(**kwargs) + context['breadcrumbs'] = ("field notes",) + return context class FieldNoteDetailView(LuxDetailView): @@ -37,3 +45,4 @@ class FieldNoteMonthArchiveView(MonthArchiveView): date_field = "pub_date" make_object_list = True template_name = "posts/fieldnote_archive_list_date.html" + |