Commit f836bf46 authored by Christian Wygoda's avatar Christian Wygoda

No meta needed for template creation

parent 338d5110
...@@ -15,17 +15,15 @@ class InlineFieldList(FieldList): ...@@ -15,17 +15,15 @@ class InlineFieldList(FieldList):
def __call__(self, **kwargs): def __call__(self, **kwargs):
# Create template # Create template
self.template = self.unbound_field.bind(form=None, name='', template = self.unbound_field.bind(form=None, name='')
_meta=self.meta)
# Small hack to remove separator from FormField # Small hack to remove separator from FormField
if isinstance(self.template, FormField): if isinstance(template, FormField):
self.template.separator = '' template.separator = ''
self.template.process(None) template.process(None)
return self.widget(self, return self.widget(self,
template=self.template, template=template,
check=self.display_row_controls, check=self.display_row_controls,
**kwargs) **kwargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment