Hello all, try to make dropdown in form

18 views
Skip to first unread message

JP

unread,
Nov 3, 2017, 12:08:58 PM11/3/17
to Django users
Hello all,
any help would be appreciated, I think this is basic stuff but can find how to do it online....

So I made the class and the form and the view
every thing works but the background color of the drop down menu in the form is black and txt is grey (white when mouse is over). I don t think I have change default option, I really dont think these are default color.

How can I put white back ground and back text??
I follow this great tutorial and am trying to change a text field in the form and put drop down instead

https://www.youtube.com/watch?v=v5FWAxi5QqQ&index=33&list=PL6gx4Cwl9DGBlmzzFcLgDhKTTfNLfX1IK

here is some code:
................................
product_type = models.CharField(max_length=100, choices = product_categories)
....................................

<div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <span class="text-danger small">{{ field.errors }}</span>
        </div>
        <label class="control-label col-sm-2">{{ field.label_tag }}</label>
        <div class="col-sm-10">{{ field }}</div>
...............................................


Thanks for the help!
Reply all
Reply to author
Forward
0 new messages