Fixed #21755 -- Added FK support for REQUIRED_FIELDS.

No need to duplicate all this stuff, just put a conditional in the interpolation:
`' (%s') % capfirst(field.rel.field_name)) if field.rel else ''`