utils/reverseForeignKey
Overview
Identifies a reverse foreign key in model info, which forms show read-only unless the view expands it.
Methods
- isReverseForeignKey - Report whether a field is a reverse foreign key, such as an order's
itemswhen each item has a foreign key to its order. - omitUnexpandedReverseForeignKeys - Remove each reverse foreign key that
expanddoes not name from a list of field names to submit.
Source
client/lib/utils/reverseForeignKey.js:1