mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
update tests, remove dead code
This commit is contained in:
parent
eec1dbe0a0
commit
fc82121604
2 changed files with 17 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue