Closed mesozoic closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
ae41931
) to head (d6b0bfe
). Report is 17 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This branch introduces
orm.fields.SingleLinkField
, which wraps (but does not inherit from)LinkField
. Implementers can useSingleLinkField
to indicate that they only ever want the first linked record of a particular field (orNone
), to avoid having to deal with lists. It is configurable whether the field will silently ignore 2nd-Nth values in fields that happen to have multiple records linked, or if it will raise an exception in that circumstance.