[FIX] models: do not consider relational fields at all in a partial setup

Relational fields may be problematic, as they may refer to unknown models.
This is the case of custom relational fields, but also inherited custom
relational fields.

Add also a fix in _setup_related(), to setup fields before accessing them.