Little fixes in now and little fix in default of textfield

This commit is contained in:
Antonio de la Rosa 2016-08-08 04:22:16 +02:00
parent 8f4e0440ed
commit a6d0ea72a3
2 changed files with 2 additions and 1 deletions

View file

@ -165,6 +165,7 @@ def now(utc=False):
else:
actual=arrow.utcnow().format(sql_format_time)
return actual
# Get actual timestamp

View file

@ -134,7 +134,7 @@ class TextField(PhangoField):
"""
return 'TEXT NOT NULL'
return 'TEXT NOT NULL DEFAULT ""'
class ForeignKeyField(IntegerField):