setChoices
Overview
Stores a choice list for a model field without fetching it.
Signature
setChoices(app, model, field, choices)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| app | string | yes | Django app label. |
| model | string | yes | Model name. |
| field | string | yes | Field name. |
| choices | any | yes | The choice list: a paginated response object with {label, value} items in results. |
Returns
void
Source
client/lib/stores/storeModelChoices.js:132