I have this template that collects all names of authors from `author_info` model. These names are shown as a drop down list. When i pass the selected value to the view, it shows null. The template:

```
<select>
     <option value="" disabled selected>Choose author</option>
     {% for author in ainfo %}
          <option  value="{{author.name}}" name="author_name">{{author.name}}</option>
     {% endfor %}
</select>

```

The code snippet from views:

```
if request.method=="POST":

    author=request.POST.get('author_name')

```