From 24da6f02ca236a813a2b4b489a86c48eb815d188 Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 16 Oct 2025 19:05:21 +0530 Subject: [PATCH] [FIX] PROJECT: Fixed archived project also coming in the project view --- project/cbv/dashboard.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/project/cbv/dashboard.py b/project/cbv/dashboard.py index 40ccc2220..8e3ddab05 100644 --- a/project/cbv/dashboard.py +++ b/project/cbv/dashboard.py @@ -13,7 +13,6 @@ from django.utils.decorators import method_decorator from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ -from base.methods import get_subordinates from horilla_views.cbv_methods import login_required from horilla_views.generic.cbv.views import HorillaDetailedView, HorillaListView from project.cbv.cbv_decorators import is_projectmanager_or_member_or_perms @@ -32,6 +31,7 @@ class ProjectsDueInMonth(HorillaListView): bulk_select_option = False columns = [(_("Project"), "title", "get_avatar")] show_filter_tags = False + show_toggle_form = False def get_queryset(self): queryset = super().get_queryset() @@ -56,11 +56,11 @@ class ProjectsDueInMonth(HorillaListView): self.search_url = reverse("projects-due-in-this-month") row_attrs = """ - hx-get='{get_detail_url}?instance_ids={ordered_ids}' - hx-target="#genericModalBody" - data-target="#genericModal" - data-toggle="oh-modal-toggle" - """ + hx-get='{get_detail_url}?instance_ids={ordered_ids}' + hx-target="#genericModalBody" + data-target="#genericModal" + data-toggle="oh-modal-toggle" + """ class ProjectDetailView(HorillaDetailedView): @@ -72,6 +72,12 @@ class ProjectDetailView(HorillaDetailedView): title = _("Details") header = {"title": "title", "subtitle": "", "avatar": "get_avatar"} + cols = { + "get_managers": 12, + "get_members": 12, + "description": 12, + } + def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) instnce_id = resolve(self.request.path_info).kwargs.get("pk")