From f90d51838951e05491a502c072a4cc790b78b6e9 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 9 Apr 2020 21:50:45 +0200 Subject: fix: datetime for models --- frest/manage/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frest/manage/utils.py b/frest/manage/utils.py index a364ae9..b1744a7 100644 --- a/frest/manage/utils.py +++ b/frest/manage/utils.py @@ -121,7 +121,7 @@ def create_model_cli(name): elif field["type"] == "text": field_string += "db.Text" elif field["type"] == "datetime": - field_string += "db.Datetime" + field_string += "db.DateTime" elif field["type"] == "float": field_string += "db.Float" else: -- cgit v1.2.3-18-g5258