From 5b3238ca55d08af938b704b79d0c29ddeb022579 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sat, 19 Nov 2022 17:40:58 -0600 Subject: [PATCH] Fix bug --- judge/views/bookmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/views/bookmark.py b/judge/views/bookmark.py index 84771d3..9c3caeb 100644 --- a/judge/views/bookmark.py +++ b/judge/views/bookmark.py @@ -76,7 +76,7 @@ class BookMarkDetailView(TemplateResponseMixin, SingleObjectMixin, View): return context -class BookMarkListView(ListView): +class BookMarkListView: def add_bookmark_context_data(self, context, obj_list="object_list"): for item in context[obj_list]: bookmark, _ = BookMark.objects.get_or_create(