Skip to content
Snippets Groups Projects
Verified Commit a5d4899d authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

fix: another SITE_URL instead of BASE_URL

parent f4b19c3d
No related branches found
No related tags found
No related merge requests found
Pipeline #1135 passed with stage
in 1 minute and 22 seconds
...@@ -74,7 +74,7 @@ class LDListMixin: ...@@ -74,7 +74,7 @@ class LDListMixin:
Model.get_permissions(parent_model, self.context['request'].user, Model.get_permissions(parent_model, self.context['request'].user,
['view'])) ['view']))
if not self.id.startswith('http'): if not self.id.startswith('http'):
self.id = '{}{}{}'.format(settings.SITE_URL, Model.resource(parent_model), self.id) self.id = '{}{}{}'.format(settings.BASE_URL, Model.resource(parent_model), self.id)
return {'@id': self.id, return {'@id': self.id,
'@type': 'ldp:Container', '@type': 'ldp:Container',
'ldp:contains': super().to_representation(filtered_values), 'ldp:contains': super().to_representation(filtered_values),
......
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