summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-04-09 21:50:45 +0200
committerSanto Cariotti <dcariotti24@gmail.com>2020-04-09 21:50:45 +0200
commitf90d51838951e05491a502c072a4cc790b78b6e9 (patch)
treecbbcc4445b162c5ae5bfe73423f2d4825ee09ad4
parent790443782ccab0784d817eb1f43021860906e455 (diff)
fix: datetime for models
-rw-r--r--frest/manage/utils.py2
1 files changed, 1 insertions, 1 deletions
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: