From eb955ad5dc6f42b1cf9ab1bbb459affa04c3db7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Mon, 2 Dec 2024 17:44:08 +0100 Subject: [PATCH] chore: make converters work with model ids --- canaille/app/flask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canaille/app/flask.py b/canaille/app/flask.py index 808db140..4713d92c 100644 --- a/canaille/app/flask.py +++ b/canaille/app/flask.py @@ -96,7 +96,7 @@ def model_converter(model): super().__init__(self, *args, **kwargs) def to_url(self, instance): - return instance.identifier + return instance.identifier or instance.id def to_python(self, identifier): current_app.backend.setup()