forked from Github-Mirrors/canaille
chore: make converters work with model ids
This commit is contained in:
parent
32d8010e6f
commit
eb955ad5dc
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue