File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 11from django .urls import path
22
3+ from shared .models .linkage import (
4+ CVEDerivationClusterProposal ,
5+ )
6+
37from .views .detail import SuggestionDetailByCveView , SuggestionDetailView
48from .views .lists import (
59 SuggestionListView ,
2630 # Lists
2731 path (
2832 "untriaged/" ,
29- SuggestionListView .as_view (status_filter = "pending" ),
33+ SuggestionListView .as_view (
34+ status_filter = CVEDerivationClusterProposal .Status .PENDING
35+ ),
3036 name = "untriaged_suggestions" ,
3137 ),
3238 path (
3339 "accepted/" ,
34- SuggestionListView .as_view (status_filter = "accepted" ),
40+ SuggestionListView .as_view (
41+ status_filter = CVEDerivationClusterProposal .Status .ACCEPTED
42+ ),
3543 name = "accepted_suggestions" ,
3644 ),
3745 path (
3846 "dismissed/" ,
39- SuggestionListView .as_view (status_filter = "rejected" ),
47+ SuggestionListView .as_view (
48+ status_filter = CVEDerivationClusterProposal .Status .REJECTED
49+ ),
4050 name = "dismissed_suggestions" ,
4151 ),
4252 path (
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class SuggestionListView(ListView, ABC):
2020
2121 template_name = "suggestions/suggestion_list.html"
2222 paginate_by = 10
23- status_filter = None
23+ status_filter : CVEDerivationClusterProposal . Status | None = None
2424 package_filter : str | None = None # To be defined in concrete classes
2525
2626 def get_queryset (self ) -> QuerySet [CVEDerivationClusterProposal ]:
You can’t perform that action at this time.
0 commit comments