Commit b953dda1 authored by Christian Wygoda's avatar Christian Wygoda

Support WTF 1&2

parent 5482f55b
...@@ -15,7 +15,11 @@ class InlineFieldList(FieldList): ...@@ -15,7 +15,11 @@ class InlineFieldList(FieldList):
def __call__(self, **kwargs): def __call__(self, **kwargs):
# Create template # Create template
template = self.unbound_field.bind(form=None, name='', _meta=self.meta) meta = getattr(self, 'meta', None)
if meta:
template = self.unbound_field.bind(form=None, name='', _meta=meta)
else:
template = self.unbound_field.bind(form=None, name='')
# Small hack to remove separator from FormField # Small hack to remove separator from FormField
if isinstance(template, FormField): if isinstance(template, FormField):
template.separator = '' template.separator = ''
......
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