Skip to content
Snippets Groups Projects
Commit 9e4bb7b8 authored by Sylvain Le Bon's avatar Sylvain Le Bon
Browse files

bugfix: typo

parent a6d05406
No related branches found
No related tags found
1 merge request!40bugfix: typo
Pipeline #806 failed
......@@ -30,7 +30,7 @@ class LDListMixin:
pass
if isinstance(data, dict):
data = [data]
if isinstance(data, str) and str.startswith("http"):
if isinstance(data, str) and data.startswith("http"):
data = [{'@id': data}]
return [self.child.to_internal_value(item) for item in data]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment