From 9e4bb7b88e5e5f57543773142c850bee4229cbb1 Mon Sep 17 00:00:00 2001 From: Sylvain Le Bon <sylvain@happy-dev.fr> Date: Tue, 12 Mar 2019 18:48:41 +0000 Subject: [PATCH] bugfix: typo --- djangoldp/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoldp/serializers.py b/djangoldp/serializers.py index 5e788155..b8b4d8d5 100644 --- a/djangoldp/serializers.py +++ b/djangoldp/serializers.py @@ -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] -- GitLab