This commit is contained in:
eraden 2023-07-31 12:19:38 +02:00
parent 72b10d8994
commit 4c13fbe0eb

View File

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