Remove ajax_select from core

This commit is contained in:
2024-10-20 23:25:56 +02:00
parent e7181257e3
commit 8b419dcee6
5 changed files with 61 additions and 12 deletions

View File

@ -1,3 +1,4 @@
from pathlib import Path
from typing import Annotated
from annotated_types import MinLen
@ -50,6 +51,12 @@ class SithFileSchema(ModelSchema):
model = SithFile
fields = ["id", "name"]
path: str
@staticmethod
def resolve_path(obj: SithFile) -> str:
return str(Path(obj.get_parent_path()) / obj.name)
class GroupSchema(ModelSchema):
class Meta: