update tests, remove dead code

This commit is contained in:
jonaswinkler
2021-01-07 15:20:00 +01:00
parent 84f5dc5d09
commit de29aff04a
2 changed files with 17 additions and 9 deletions

View File

@@ -382,13 +382,6 @@ class PostDocumentSerializer(serializers.Serializer):
return document.name, document_data
def validate_title(self, title):
if title:
return title
else:
# do not return empty strings.
return None
def validate_correspondent(self, correspondent):
if correspondent:
return correspondent.id