This commit is contained in:
eraden 2023-07-31 12:19:38 +02:00 committed by Adrian Woźniak
parent eb35037bca
commit f79b952f8a

View File

@ -82,6 +82,10 @@ pub async fn create_or_edit_post<E: ActixAdminViewModelTrait>(
let db = db.get_ref(); let db = db.get_ref();
let mut model = model_res.unwrap(); let mut model = model_res.unwrap();
#[cfg(feature="enable-tracing")]
{
tracing::debug!("Entity model: {:#?}", model);
}
E::validate_entity(&mut model); E::validate_entity(&mut model);
if model.has_errors() { if model.has_errors() {