From d522f23b552a88950283f73998f89947fd1163eb Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 18 Nov 2024 06:55:01 +0100 Subject: [PATCH] fix: Adds 'hidden' field to ActivityEditView form Enables editing of the 'hidden' attribute in activity forms, supporting the management of activity visibility in the UI. --- mood/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mood/views.py b/mood/views.py index 84a0887..6a14d49 100644 --- a/mood/views.py +++ b/mood/views.py @@ -177,7 +177,7 @@ class ActivityListView(LoginRequiredMixin, ListView): class ActivityEditView(LoginRequiredMixin, UpdateView): template_name = "mood/activity_edit.html" model = Activity - fields = ["name", "icon", "color"] + fields = ["name", "icon", "color", "hidden"] def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs)