Skip to content

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 items when each item has a foreign key to its order.
  • omitUnexpandedReverseForeignKeys - Remove each reverse foreign key that expand does not name from a list of field names to submit.

Source ​

client/lib/utils/reverseForeignKey.js:1