Re: How do I get dynamic choices to a select widget at render time?

2018-02-22 Thread Mike Dewhirst
On 20/02/2018 11:51 PM, Andy wrote: use django-select2 Had a look at the docs and django-select2 doesn't address this use case. However, I can see I will need it for ORM related selections in the near term. Thanks Andy. Am Dienstag, 20. Februar 2018 01:17:26 UTC+1 schrieb Mike Dewhirst:

Re: How do I get dynamic choices to a select widget at render time?

2018-02-20 Thread Andy
use django-select2 Am Dienstag, 20. Februar 2018 01:17:26 UTC+1 schrieb Mike Dewhirst: > > Here is an example of get_choices() output ... it comes from a method on > the Question model. > > [('A', 'A - Once?'), ('B', 'B - Twice?'), ('C', 'C - Four times?'), > ('D', 'D - Twelve times?'),

Re: How do I get dynamic choices to a select widget at render time?

2018-02-20 Thread Mike Dewhirst
On 20/02/2018 11:16 AM, Mike Dewhirst wrote: Here is an example of get_choices() output ... it comes from a method on the Question model.  [('A', 'A - Once?'), ('B', 'B - Twice?'), ('C', 'C - Four times?'), ('D', 'D - Twelve times?'), ('E', 'E - Continously as changes are made?')] It is

How do I get dynamic choices to a select widget at render time?

2018-02-19 Thread Mike Dewhirst
Here is an example of get_choices() output ... it comes from a method on the Question model.  [('A', 'A - Once?'), ('B', 'B - Twice?'), ('C', 'C - Four times?'), ('D', 'D - Twelve times?'), ('E', 'E - Continously as changes are made?')] It is available before the the answer form is