From ae32a57181b131123b3269d64060f079e075b55f Mon Sep 17 00:00:00 2001 From: Manuel Gugger Date: Mon, 20 Mar 2023 18:54:03 +0100 Subject: [PATCH] revert sea-orm because of issue with table list --- Cargo.toml | 4 ++-- actix_admin_macros/src/lib.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f65f654..686253e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,13 +31,13 @@ lazy_static = "^1.4.0" itertools = "^0.10.5" serde = "^1.0.158" serde_derive = "^1.0.158" -sea-orm = { version = "^0.11.1", features = [], default-features = false } +sea-orm = { version = "^0.10.6", features = [], default-features = false } actix-admin-macros = { version = "0.4.0", path = "actix_admin_macros" } derive_more = "0.99.17" regex = "1.7.1" [dev-dependencies] -sea-orm = { version = "^0.11.1", features = [ "sqlx-sqlite", "runtime-actix-native-tls", "macros" ], default-features = true } +sea-orm = { version = "^0.10.6", features = [ "sqlx-sqlite", "runtime-actix-native-tls", "macros" ], default-features = true } actix-rt = "2.8.0" azure_auth = { path = "./examples/azure_auth/azure_auth" } oauth2 = "4.3" diff --git a/actix_admin_macros/src/lib.rs b/actix_admin_macros/src/lib.rs index 71f32ee..09ec589 100644 --- a/actix_admin_macros/src/lib.rs +++ b/actix_admin_macros/src/lib.rs @@ -87,7 +87,6 @@ pub fn derive_actix_admin_view_model(input: proc_macro::TokenStream) -> proc_mac async fn create_entity(db: &DatabaseConnection, mut model: ActixAdminModel) -> Result { let new_model = ActiveModel::from(model.clone()); let insert_operation = Entity::insert(new_model).exec(db).await?; - model.primary_key = Some(insert_operation.last_insert_id.to_string()); Ok(model)