Commit 810e193c authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #691 from arsgeografica/wtf2

WForms2 compatibility – resumed
parents cd99ca47 b953dda1
...@@ -4,7 +4,11 @@ python: ...@@ -4,7 +4,11 @@ python:
- "2.7" - "2.7"
- "3.3" - "3.3"
install: "pip install -r travis.txt --use-mirrors" env:
- REQUIREMENTS=travis_wtf1.txt
- REQUIREMENTS=travis_wtf2.txt
install: "pip install -r $REQUIREMENTS --use-mirrors"
services: mongodb services: mongodb
......
...@@ -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 = 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 = ''
......
Flask>=0.7
wtforms>=2.0
Flask-SQLAlchemy>=0.15
peewee
wtf-peewee
flask-mongoengine
pillow
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