Made list store empty list by default
This commit is contained in:
parent
b89d71bfa5
commit
acbc741037
@ -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…
x
Reference in New Issue
Block a user