from __future__ import unicode_literals

from .models import Test

from django import forms
from json_field.forms import JSONFormField


class ModelForm(forms.ModelForm):
    class Meta:
        model = Test
        exclude = []


class TestForm(forms.Form):
    json = JSONFormField()


class OptionalForm(forms.Form):
    json = JSONFormField(required=False)


class EvalForm(forms.Form):
    json = JSONFormField(evaluate=True)

from __future__ import unicode_literals

from .models import Test

from django import forms
from json_field.forms import JSONFormField


class ModelForm(forms.ModelForm):
    class Meta:
        model = Test
        exclude = []


class TestForm(forms.Form):
    json = JSONFormField()


class OptionalForm(forms.Form):
    json = JSONFormField(required=False)


class EvalForm(forms.Form):
    json = JSONFormField(evaluate=True)
