Little fixes in now and little fix in default of textfield
This commit is contained in:
parent
8f4e0440ed
commit
a6d0ea72a3
2 changed files with 2 additions and 1 deletions
|
|
@ -165,6 +165,7 @@ def now(utc=False):
|
||||||
else:
|
else:
|
||||||
actual=arrow.utcnow().format(sql_format_time)
|
actual=arrow.utcnow().format(sql_format_time)
|
||||||
|
|
||||||
|
return actual
|
||||||
|
|
||||||
# Get actual timestamp
|
# Get actual timestamp
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ class TextField(PhangoField):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return 'TEXT NOT NULL'
|
return 'TEXT NOT NULL DEFAULT ""'
|
||||||
|
|
||||||
class ForeignKeyField(IntegerField):
|
class ForeignKeyField(IntegerField):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue