home · contact · privacy
Add text-based search/filter for Conditions and Processes.
[plomtask] / plomtask / conditions.py
index 8ab4282080b4898f8d08da4e443f8ac3d64131ee..d2559272cd876c5b071b59437998e3356409cd07 100644 (file)
@@ -12,6 +12,7 @@ class Condition(BaseModel[int]):
     table_name = 'conditions'
     to_save = ['is_active']
     to_save_versioned = ['title', 'description']
+    to_search = ['title.newest', 'description.newest']
 
     def __init__(self, id_: int | None, is_active: bool = False) -> None:
         super().__init__(id_)