```python
note_type = forms.TypedChoiceField(coerce=int, choices=[(x, x) for x in comm.NOTE_TYPES],
    error_messages={'invalid_choice': _lazy(u'Invalid note type.')}))
```