From 36936edbe1b08f47a9f02ccb49b17aa94ca33aad Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 17 Jan 2019 09:40:52 +0100 Subject: [PATCH] add clearable --- tiramisu_json_api/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index 549fdac..2c8411d 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -91,6 +91,8 @@ class TiramisuOptionOption: props.append('frozen') if model.get('hidden'): props.append('hidden') + if self.form.get(self._path, {}).get('clearable'): + props.append('clearable') return props def requires(self) -> None: