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

@@ -110,24 +110,59 @@
 orms.Form):%0A
+    user_id = forms.IntegerField()%0A
     name = f
@@ -279,16 +279,25 @@
 d()%0A    
+creation_
 time = f

make tests happy