Add check for proxy models containing fields.

Remove the FieldError raised by `ModelBase.__new__` in this case.

refs #22690 (https://code.djangoproject.com/ticket/22690)