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
bf684d21
Commit
bf684d21
authored
Sep 16, 2019
by
Jean-Baptiste
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '168-duplicate' into 'master'
update: remove duplicates on m2m Closes
#168
See merge request
!102
parents
b2d44490
af9b0d73
Pipeline
#5353
passed with stage
in 1 minute and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
djangoldp/serializers.py
djangoldp/serializers.py
+1
-0
No files found.
djangoldp/serializers.py
View file @
bf684d21
...
...
@@ -618,4 +618,5 @@ class LDPSerializer(HyperlinkedModelSerializer):
saved_item
=
self
.
internal_create
(
validated_data
=
item
,
model
=
manager
.
model
)
if
getattr
(
manager
,
'through'
,
None
)
is
not
None
and
manager
.
through
.
_meta
.
auto_created
:
manager
.
remove
(
saved_item
)
manager
.
add
(
saved_item
)
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