class EventForm(ModelForm):
class Meta:
def sort():
status = []
for i in Event.PROBLEM_CHOICES_STATUS:
if i[0] == 1 or i[0] == 2:
status.append(i)
return status
Event.PROBLEM_CHOICES_TYPE = sort()
model = Event
fields = ( 'status', )
choices = [1, 2]
if not false:
choices.append(3)