Fix in arrayfield and dictfield
This commit is contained in:
parent
bc45e1e8f6
commit
9f25071bfa
2 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ class ArrayField(PhangoField):
|
||||||
|
|
||||||
def get_type_sql(self):
|
def get_type_sql(self):
|
||||||
|
|
||||||
return 'TEXT NOT NULL'
|
return 'TEXT NOT NULL DEFAULT ""'
|
||||||
|
|
||||||
def show_formatted(self, value):
|
def show_formatted(self, value):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ class DictField(PhangoField):
|
||||||
|
|
||||||
def get_type_sql(self):
|
def get_type_sql(self):
|
||||||
|
|
||||||
return 'TEXT NOT NULL'
|
return 'TEXT NOT NULL DEFAULT ""'
|
||||||
|
|
||||||
def show_formatted(self, value):
|
def show_formatted(self, value):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue