Fixed rendering of sequence item "default values" in SequenceWidget #79

Closed
wants to merge 1 commit into
from
View
2 deform/widget.py
@@ -988,7 +988,7 @@ def prototype(self, field):
# automated testing; finding last node)
item_field = field.children[0].clone()
proto = field.renderer(self.item_template, field=item_field,
- cstruct=null, parent=field)
+ cstruct=item_field.schema.serialize(null), parent=field)
if isinstance(proto, string_types):
proto = proto.encode('utf-8')
proto = url_quote(proto)