from django import forms

from .models import Task


class NewTaskForm(forms.ModelForm):
    class Meta:
        model = Task
        fields = ["parent", "text"]


class DeleteTaskForm(forms.Form):
    id = forms.IntegerField()


class EditTaskForm(forms.Form):
    id = forms.IntegerField()
    text = forms.CharField()
    parent = forms.IntegerField(required=False)
    sort_order = forms.IntegerField(required=False)


class SetDoneTaskForm(forms.Form):
    id = forms.IntegerField()
    done = forms.BooleanField(required=False)

63d87c8c4c1ff48d3f507fb2d6e8c2035ae9866b
<mask token>


class DeleteTaskForm(forms.Form):
    <mask token>


class EditTaskForm(forms.Form):
    id = forms.IntegerField()
    text = forms.CharField()
    parent = forms.IntegerField(required=False)
    sort_order = forms.IntegerField(required=False)


class SetDoneTaskForm(forms.Form):
    id = forms.IntegerField()
    done = forms.BooleanField(required=False)

<mask token>


class DeleteTaskForm(forms.Form):
    id = forms.IntegerField()


class EditTaskForm(forms.Form):
    id = forms.IntegerField()
    text = forms.CharField()
    parent = forms.IntegerField(required=False)
    sort_order = forms.IntegerField(required=False)


class SetDoneTaskForm(forms.Form):
    id = forms.IntegerField()
    done = forms.BooleanField(required=False)

<mask token>


class NewTaskForm(forms.ModelForm):


    class Meta:
        model = Task
        fields = ['parent', 'text']


class DeleteTaskForm(forms.Form):
    id = forms.IntegerField()


class EditTaskForm(forms.Form):
    id = forms.IntegerField()
    text = forms.CharField()
    parent = forms.IntegerField(required=False)
    sort_order = forms.IntegerField(required=False)


class SetDoneTaskForm(forms.Form):
    id = forms.IntegerField()
    done = forms.BooleanField(required=False)

from django import forms
from .models import Task


class NewTaskForm(forms.ModelForm):


    class Meta:
        model = Task
        fields = ['parent', 'text']


class DeleteTaskForm(forms.Form):
    id = forms.IntegerField()


class EditTaskForm(forms.Form):
    id = forms.IntegerField()
    text = forms.CharField()
    parent = forms.IntegerField(required=False)
    sort_order = forms.IntegerField(required=False)


class SetDoneTaskForm(forms.Form):
    id = forms.IntegerField()
    done = forms.BooleanField(required=False)

from django import forms

from .models import Task


class NewTaskForm(forms.ModelForm):
    class Meta:
        model = Task
        fields = ["parent", "text"]


class DeleteTaskForm(forms.Form):
    id = forms.IntegerField()


class EditTaskForm(forms.Form):
    id = forms.IntegerField()
    text = forms.CharField()
    parent = forms.IntegerField(required=False)
    sort_order = forms.IntegerField(required=False)


class SetDoneTaskForm(forms.Form):
    id = forms.IntegerField()
    done = forms.BooleanField(required=False)
