Skip to content

setChoices ​

Overview ​

Stores a choice list for a model field without fetching it.

Signature ​

setChoices(app, model, field, choices)

Parameters ​

NameTypeRequiredDescription
appstringyesDjango app label.
modelstringyesModel name.
fieldstringyesField name.
choicesanyyesThe choice list: a paginated response object with {label, value} items in results.

Returns ​

void

Source ​

client/lib/stores/storeModelChoices.js:132