# "override" proxy fields with declared fields by excluding them if there's a name conflict.
exclude = (list(opts.exclude or []) + new_class.declared_fields.keys()) or None
proxy_fields = proxy_fields_for_entity_model(opts.model, opts.fields, exclude, opts.widgets, formfield_callback) # don't pass in formfield_callback
# "override" proxy fields with declared fields by excluding them if there's a name conflict.
exclude = (list(opts.exclude or []) + new_class.declared_fields.keys()) or None
proxy_fields = proxy_fields_for_entity_model(opts.model, opts.fields, exclude, opts.widgets, formfield_callback) # don't pass in formfield_callback