Django | Save model's choice list values

Posted by MMRUser on Stack Overflow See other posts from Stack Overflow or by MMRUser
Published on 2010-04-20T11:04:55Z Indexed on 2010/04/20 11:53 UTC
Read the original article Hit count: 302

Filed under:

I have a form that has a choice list:

<select name="cellSerpro" id="idcellserpro" class="field text" >
    <option value="">---</option>
    <option value="option1">Verizon</option>
    <option value="option2">AT&T</option>
    <option value="option3">T-Mobile</option>
    <option value="option4">Sprint</option>
</select>

So how do I get the selected value of it from the Django's model class in order to save it in the database, I have search through the net but couldn't find any way of doing it..

Thanks..

© Stack Overflow or respective owner

Related posts about django