diff --git a/src/models/comment.py b/src/models/comment.py index f9cde24..7aec613 100644 --- a/src/models/comment.py +++ b/src/models/comment.py @@ -14,4 +14,4 @@ class Comment(db.Model): item_id = db.Column(db.Integer, db.ForeignKey("item.id", ondelete="CASCADE"), nullable=False) item = db.relationship("Item", backref=db.backref("comments", lazy=True)) - text = db.Text(4096) + text = db.Column(db.String(4096), nullable=False) diff --git a/src/templates/item.html b/src/templates/item.html index e1b75f5..594a62f 100644 --- a/src/templates/item.html +++ b/src/templates/item.html @@ -27,12 +27,12 @@ {% if current_user.is_authenticated %}