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..
My sample model:
class Author(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=3)
cellSerpro = # ---- how to declare the choice list and get the selected value ----
Thanks.. Thanks..