# -*- encoding: utf-8 -*-
# ! python2

from __future__ import (absolute_import, division, print_function, unicode_literals)

from django import forms
from .models import {% for model in models %}{{ model.name }}{% if not loop.last %}, {% endif %}{% endfor %}

{% for model in models %}
class {{ model.name }}Form(forms.ModelForm):

    class Meta:
        model = {{ model.name }}
        fields = ({% for field in model.fields %}'{{ field.name }}', {% endfor %})

{% endfor %}
