Made list store empty list by default
This commit is contained in:
parent
ec519f20fa
commit
6093e88eeb
1 changed files with 1 additions and 0 deletions
|
|
@ -263,6 +263,7 @@ class ListField(BaseField):
|
|||
raise ValidationError('Argument to ListField constructor must be '
|
||||
'a valid field')
|
||||
self.field = field
|
||||
kwargs.setdefault("default", [])
|
||||
super(ListField, self).__init__(**kwargs)
|
||||
|
||||
def __get__(self, instance, owner):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue