FIxes in models
This commit is contained in:
parent
a7d2456857
commit
50c030de53
6 changed files with 29 additions and 7 deletions
|
|
@ -10,6 +10,8 @@ class DictField(PhangoField):
|
|||
self.field_type=field_type
|
||||
|
||||
self.error_default='Sorry, the json dict is invalid'
|
||||
|
||||
self.set_default='NOT NULL'
|
||||
|
||||
def check(self, value):
|
||||
|
||||
|
|
@ -40,7 +42,7 @@ class DictField(PhangoField):
|
|||
|
||||
def get_type_sql(self):
|
||||
|
||||
return 'TEXT NOT NULL'
|
||||
return 'TEXT '+self.set_default
|
||||
|
||||
def show_formatted(self, value):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue