Feature: live preview of storage path (#7870)

This commit is contained in:
shamoon 2024-10-09 16:35:36 -07:00 committed by GitHub
parent 8dd355f6bf
commit 024b60638a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 426 additions and 54 deletions

View file

@ -2010,3 +2010,18 @@ class TrashSerializer(SerializerWithPerms):
"Some documents in the list have not yet been deleted.",
)
return documents
class StoragePathTestSerializer(SerializerWithPerms):
path = serializers.CharField(
required=True,
label="Path",
write_only=True,
)
document = serializers.PrimaryKeyRelatedField(
queryset=Document.objects.all(),
required=True,
label="Document",
write_only=True,
)