about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs
index fc67c260a448..d85a54e03090 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -18,7 +18,7 @@ pub struct Post {
     pub posted: DateTime<Utc>,
 }
 
-#[derive(Insertable)]
+#[derive(Deserialize, Insertable)]
 #[table_name="threads"]
 pub struct NewThread {
     pub title: String,