Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Merge requests
!2233
Something went wrong on our end
Remove Ponos from CE
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove Ponos from CE
move-ponos-ee
into
community
Overview
1
Commits
23
Pipelines
0
Changes
1
Merged
Valentin Rigal
requested to merge
move-ponos-ee
into
community
1 year ago
Overview
1
Commits
23
Pipelines
0
Changes
1
Expand
Based on
!2227 (merged)
TODO:
Remove & update tests
Edited
1 year ago
by
Valentin Rigal
0
0
Merge request reports
Viewing commit
655c13f8
Prev
Next
Show latest version
1 file
+
6
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
655c13f8
Fix NullField for schema generation
· 655c13f8
Valentin Rigal
authored
1 year ago
arkindex/project/serializer_fields.py
+
6
−
2
Options
@@ -293,8 +293,12 @@ class DatasetSetsCountField(serializers.DictField):
return
elts_count
class
NullField
(
serializers
.
Field
):
read_only
=
True
class
NullField
(
serializers
.
CharField
):
def
to_representation
(
self
,
value
):
return
None
def
to_internal_value
(
self
,
data
):
if
data
is
not
None
:
self
.
fail
(
"
invalid
"
)
return
None
Loading