directory_serializer#
ContextFileStorageMixin#
Bases: Serializer
Serializer mixin that gets FileStorage fields from context.
Source code in src/apps/files/serializers/directory_serializer.py
DirectoryFileSerializer#
Bases: ContextFileStorageMixin
, FileSerializer
Source code in src/apps/files/serializers/directory_serializer.py
BaseDirectorySerializer#
Bases: ContextFileStorageMixin
, Serializer
Source code in src/apps/files/serializers/directory_serializer.py
SubDirectorySerializer#
Bases: BaseDirectorySerializer
Serializer for subdirectory, shows file counts and sizes.
Source code in src/apps/files/serializers/directory_serializer.py
get_url(obj)
#
Get url for browsing directory contents.
ParentDirectorySerializer#
Bases: BaseDirectorySerializer
Source code in src/apps/files/serializers/directory_serializer.py
get_parent_url(obj)
#
Get url for navigating to parent of current directory.
Source code in src/apps/files/serializers/directory_serializer.py
DirectorySerializer#
Bases: Serializer
Serializer for directory with subdirectories and files.