from django import forms
from imfp.events.constants import EVENT_TYPES, EVENT_ZONES


class CreateEventForm(forms.Form):
    name = forms.CharField(max_length=255)
    description = forms.CharField(max_length=255)
    seats = forms.IntegerField()
    time = forms.DateTimeField()
    type = forms.ChoiceField(choices=EVENT_TYPES)
    zone = forms.ChoiceField(choices=EVENT_ZONES)


class EventActionsFormBase(forms.Form):
    user_id = forms.IntegerField()


class SubscribeToEventForm(EventActionsFormBase):
    pass


class UnsubscribeFromEventForm(EventActionsFormBase):
    pass


class DeleteEventForm(EventActionsFormBase):
    pass

from django import forms
from imfp.events.constants import EVENT_TYPES, EVENT_ZONES


class CreateEventForm(forms.Form):
    user_id = forms.IntegerField()
    name = forms.CharField(max_length=255)
    description = forms.CharField(max_length=255)
    seats = forms.IntegerField()
    creation_time = forms.DateTimeField()
    type = forms.ChoiceField(choices=EVENT_TYPES)
    zone = forms.ChoiceField(choices=EVENT_ZONES)


class EventActionsFormBase(forms.Form):
    user_id = forms.IntegerField()


class SubscribeToEventForm(EventActionsFormBase):
    pass


class UnsubscribeFromEventForm(EventActionsFormBase):
    pass


class DeleteEventForm(EventActionsFormBase):
    pass

make tests happy