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
3f5a2e14
Verified
Commit
3f5a2e14
authored
Nov 01, 2019
by
Jean-Baptiste Pasquier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: do not filter auto_autor on options requests !190
parent
e6bb7b4f
Pipeline
#6263
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 @
3f5a2e14
...
...
@@ -255,7 +255,7 @@ class LDPSerializer(HyperlinkedModelSerializer):
fields
=
list
(
self
.
Meta
.
model
.
_meta
.
serializer_fields
)
except
AttributeError
:
fields
=
super
()
.
get_default_field_names
(
declared_fields
,
model_info
)
if
'request'
in
self
.
_context
and
not
self
.
_context
[
'request'
]
.
_request
.
method
==
'GET'
:
if
'request'
in
self
.
_context
and
not
(
self
.
_context
[
'request'
]
.
_request
.
method
==
'GET'
or
self
.
_context
[
'request'
]
.
_request
.
method
==
'OPTIONS'
)
:
try
:
fields
.
remove
(
self
.
Meta
.
model
.
_meta
.
auto_author
)
except
ValueError
:
...
...
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