If MultipleChoiceField seems to do the job, go for it :). Most likely it's
the best fit for your task.

And yes, you can create dropdown using Django ChoiceField (or
MultipleChoiceField if multiple selected items in a dropdown should be
allowed).

On Mon, Sep 19, 2016 at 8:15 PM Janki Chhatbar <jankih...@gmail.com> wrote:

> Hi Timur
>
> Thanks for your response.
>
> I need to input data like this:
>
> mapping = ['K1': 'v1', 'k2': 'v2']
> If mapping:
>     Check if v1 and v2 stored in server.
>     Change to dictionary
>
> This is then passed on to the server as a dictionary.
>
> I have few questions:
> 1. I found about MultipleChoiceField. This seems to do the job. Though not
> sure.
> 2. Can a Dropdown list be created to select v1 and v2?
>
> Looking forward for your opinion.
>
> Thanks
>
>
> Janki
>
> On 19-Sep-2016 10:30 pm, "Timur Sufiev" <tsuf...@mirantis.com> wrote:
>
>> Hi, Janki
>>
>> What do you mean by ListField? A list of arbitrary tags? List of numbers?
>> List of predefined values that you can choose from? Options may vary widely
>> depending on your particular needs.
>>
>> On Sun, Sep 18, 2016 at 6:32 PM Janki Chhatbar <jankih...@gmail.com>
>> wrote:
>>
>>> Hi
>>>
>>> I am working on a dashboard's panel that needs an input as a "list". I
>>> couldnot find any "ListField" (like CharFiled) in Horizon forms.
>>>
>>> Is there any other field type that takes input as a list or this needs
>>> to be developed?
>>>
>>> Any pointer would be appreciated.
>>>
>>> --
>>> Thanking you
>>>
>>> Janki Chhatbar
>>> OpenStack | Docker | SDN
>>> simplyexplainedblog.wordpress.com
>>>
>>> __________________________________________________________________________
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>
>> __________________________________________________________________________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to