Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Django LDP
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
20
Issues
20
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Startin blox
djangoldp-packages
Django LDP
Commits
a5d4899d
Verified
Commit
a5d4899d
authored
Dec 04, 2019
by
Jean-Baptiste Pasquier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: another SITE_URL instead of BASE_URL
parent
f4b19c3d
Pipeline
#6677
passed with stage
in 1 minute and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
djangoldp/serializers.py
djangoldp/serializers.py
+1
-1
No files found.
djangoldp/serializers.py
View file @
a5d4899d
...
...
@@ -74,7 +74,7 @@ class LDListMixin:
Model
.
get_permissions
(
parent_model
,
self
.
context
[
'request'
]
.
user
,
[
'view'
]))
if
not
self
.
id
.
startswith
(
'http'
):
self
.
id
=
'{}{}{}'
.
format
(
settings
.
SIT
E_URL
,
Model
.
resource
(
parent_model
),
self
.
id
)
self
.
id
=
'{}{}{}'
.
format
(
settings
.
BAS
E_URL
,
Model
.
resource
(
parent_model
),
self
.
id
)
return
{
'@id'
:
self
.
id
,
'@type'
:
'ldp:Container'
,
'ldp:contains'
:
super
()
.
to_representation
(
filtered_values
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment