mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
add api method to get selection data
This commit is contained in:
parent
0a1b810da7
commit
320298e3ff
3 changed files with 71 additions and 4 deletions
|
|
@ -393,3 +393,11 @@ class PostDocumentSerializer(serializers.Serializer):
|
|||
return [tag.id for tag in tags]
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
class SelectionDataSerializer(serializers.Serializer):
|
||||
|
||||
documents = serializers.ListField(
|
||||
required=True,
|
||||
child=serializers.IntegerField()
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue