Skip to content

Commit 45688f8

Browse files
committed
added the created and updated DateRangeFilter
1 parent 3adf4cd commit 45688f8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

dojo/filters.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3126,10 +3126,16 @@ class Meta:
31263126

31273127

31283128
class ApiRiskAcceptanceFilter(DojoFilter):
3129+
# added new filters
3130+
created = DateRangeFilter()
3131+
updated = DateRangeFilter()
3132+
31293133
o = OrderingFilter(
31303134
# tuple-mapping retains order
31313135
fields=(
31323136
("name", "name"),
3137+
("created", "created"),
3138+
("updated", "updated"),
31333139
),
31343140
)
31353141

@@ -3139,7 +3145,7 @@ class Meta:
31393145
"name", "accepted_findings", "recommendation", "recommendation_details",
31403146
"decision", "decision_details", "accepted_by", "owner", "expiration_date",
31413147
"expiration_date_warned", "expiration_date_handled", "reactivate_expired",
3142-
"restart_sla_expired", "notes",
3148+
"restart_sla_expired", "notes", "created", "updated",
31433149
]
31443150

31453151

0 commit comments

Comments
 (0)