This commit is contained in:
imperosol
2025-04-21 20:37:01 +02:00
parent 5b6f5c828a
commit b7279dfd8a
17 changed files with 426 additions and 134 deletions

View File

@@ -55,7 +55,12 @@ class AlbumAutocompleteSchema(ModelSchema):
@staticmethod
def resolve_path(obj: Album) -> str:
return str(Path(obj.get_parent_path()) / obj.name)
return str(Path(obj.parent_path) / obj.name)
class MoveAlbumSchema(Schema):
id: int
new_parent_id: int
class PictureFilterSchema(FilterSchema):