from django.forms import ModelForm
from django.forms import MultipleChoiceField
from models import Collection, Field, Deck
from django import forms
import logging

class CollectionForm(ModelForm):
    class Meta:
        model = Collection
        fields = ['title', 'description']
        
class FieldForm(ModelForm):
    class Meta:
        model = Field
        fields = ['field_type', 'sort_order', 'display', 'label']

class DeckForm(ModelForm):
    class Meta:
        model = Deck
        fields = ['title']
from django.forms import ModelForm
from django.forms import MultipleChoiceField
from models import Collection, Field, Deck
from django import forms
import logging

class CollectionForm(ModelForm):
    class Meta:
        model = Collection
        fields = ['title', 'description']
        
class FieldForm(ModelForm):
    class Meta:
        model = Field
        fields = ['field_type', 'display', 'label']

class DeckForm(ModelForm):
    class Meta:
        model = Deck
        fields = ['title']

fix error with field