This commit is contained in:
cuom1999 2022-11-19 17:40:58 -06:00
parent b6a09c9ebb
commit 5b3238ca55

View file

@ -76,7 +76,7 @@ class BookMarkDetailView(TemplateResponseMixin, SingleObjectMixin, View):
return context return context
class BookMarkListView(ListView): class BookMarkListView:
def add_bookmark_context_data(self, context, obj_list="object_list"): def add_bookmark_context_data(self, context, obj_list="object_list"):
for item in context[obj_list]: for item in context[obj_list]:
bookmark, _ = BookMark.objects.get_or_create( bookmark, _ = BookMark.objects.get_or_create(