Skip to content
Snippets Groups Projects

Remove Ponos from CE

Merged Valentin Rigal requested to merge move-ponos-ee into community
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
@@ -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