Made list store empty list by default
This commit is contained in:
parent
b89d71bfa5
commit
acbc741037
1 changed files with 1 additions and 0 deletions
|
|
@ -261,6 +261,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