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.
This commit is contained in:
parent
a6025dee31
commit
d522f23b55
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue