diff --git a/fastapi_amis_admin/__init__.py b/fastapi_amis_admin/__init__.py index c033c79b..578ecf1f 100644 --- a/fastapi_amis_admin/__init__.py +++ b/fastapi_amis_admin/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1.1" +__version__ = "0.1.2" __url__ = "https://github.com/amisadmin/fastapi_amis_admin" import gettext diff --git a/fastapi_amis_admin/amis_admin/admin.py b/fastapi_amis_admin/amis_admin/admin.py index d06f5701..1500e5c6 100644 --- a/fastapi_amis_admin/amis_admin/admin.py +++ b/fastapi_amis_admin/amis_admin/admin.py @@ -347,7 +347,7 @@ async def get_list_table(self, request: Request) -> TableCRUD: perPage=self.list_per_page, itemActions=await self.get_actions_on_item(request), bulkActions=await self.get_actions_on_bulk(request), - footerToolbar=["statistics", "switch-per-page", "pagination", "load-more", "export-csv","export-excel"], + footerToolbar=["statistics", "switch-per-page", "pagination", "load-more", "export-csv", "export-excel"], columns=await self.get_list_columns(request), primaryField=self.pk_name, quickSaveItemApi=f'put:{self.router_path}/item/' + '${id}', diff --git a/fastapi_amis_admin/amis_admin/settings.py b/fastapi_amis_admin/amis_admin/settings.py index 358025b7..e1ce6b9d 100644 --- a/fastapi_amis_admin/amis_admin/settings.py +++ b/fastapi_amis_admin/amis_admin/settings.py @@ -1,4 +1,4 @@ -from pydantic import BaseSettings, Field, validator +from pydantic import BaseSettings, Field class Settings(BaseSettings): @@ -9,4 +9,3 @@ class Settings(BaseSettings): root_path: str = '/admin' database_url_async: str = Field(..., env='DATABASE_URL_ASYNC') language: str = '' # 'zh_CN','en_US' -