Feature: live preview of storage path (#7870)

This commit is contained in:
shamoon authored and GitHub committed 2024-10-09 23:35:36 +00:00
1 parent 8dd355f6bf
commit 024b60638a
15 files changed
+426 -54

No files matched your search

+15
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,
)