mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
code cleanup
This commit is contained in:
parent
5a84cc835a
commit
b44f8383e4
18 changed files with 208 additions and 101 deletions
|
|
@ -76,9 +76,11 @@ class DocumentTypeField(serializers.PrimaryKeyRelatedField):
|
|||
|
||||
class DocumentSerializer(serializers.ModelSerializer):
|
||||
|
||||
correspondent_id = CorrespondentField(allow_null=True, source='correspondent')
|
||||
correspondent_id = CorrespondentField(
|
||||
allow_null=True, source='correspondent')
|
||||
tags_id = TagsField(many=True, source='tags')
|
||||
document_type_id = DocumentTypeField(allow_null=True, source='document_type')
|
||||
document_type_id = DocumentTypeField(
|
||||
allow_null=True, source='document_type')
|
||||
|
||||
class Meta:
|
||||
model = Document
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue