id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 26238,confusing error message: django.core.exceptions.FieldError: Unknown field(s) specified when including a BinaryField in ModelForm.Meta.fields,luke crouch,nobody,"I had a `Model` with a `CharField`: {{{ class PushApplication(models.Model): jws_key = models.CharField(blank=True, max_length=255) }}} I changed it to a `BinaryField`: {{{ class PushApplication(models.Model): jws_key = models.BinaryField(blank=True) }}} When I tried to run makemigrations: {{{ $ python manage.py makemigrations ... django.core.exceptions.FieldError: Unknown field(s) (jws_key) specified for PushApplication }}} The problem was that I had a `ModelForm` with `jws_key` in the fields: {{{ class PushAppForm(ModelForm): class Meta: fields = ['name', 'jws_key'] }}} I removed `jws_key` from the `ModelForm` and it works. But the error message sent me on an hour long web search trying to find out why changing a `CharField` to `BinaryField` would break migrations.",Cleanup/optimization,closed,Forms,dev,Normal,fixed,,,Ready for checkin,1,0,0,0,0,0