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()