title: Getting None even after selecting option in Django?
body: <p>What I want to do is get the option that the user selects from my <strong>Html</strong> select form and then work with it. I've tried accessing those values like <code>print(request.POST.get('variations', None))</code> and even after selecting option, it's returning <code>None</code>. I am not really understanding why. Can anyone please help me out with this? Thanks in advance!</p>
  
  <p>My html form:</p>
  
  <pre><code>&lt;form class="form" method="POST" action="{{ object.get_add_to_cart_url }}"&gt;
    {% csrf_token %}
      {% for var in object.variation_set.all %}
        &lt;h5&gt;Choose {{ var.name }}&lt;/h5&gt;
          &lt;select class="form-control mb-4 col-md-4" title="variations"&gt;
            {% for item in var.itemvariation_set.all %}
              &lt;option value="{{ item.value }}"&gt;{{ item.value|capfirst }}&lt;/option&gt;
            {% endfor %}  
          &lt;/select&gt;
      {% endfor %}
      &lt;div class="action"&gt;
        &lt;button class="btn btn-success"&gt;Add to Cart&lt;/button&gt;
       &lt;button class="like btn btn-danger" type="button"&gt;&lt;span class="fa fa-heart"&gt;&lt;/span&gt;&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <blockquote>
    <p>I want to get what the user has selected and work with them in this view, i.e while adding a product to the cart.</p>
  </blockquote>
  
  <p>My views.py:</p>
  
  <pre><code>@login_required
  def add_to_cart(request, slug):
      item = get_object_or_404(Item, slug=slug)
  
      order_item, created = OrderItem.objects.get_or_create(
          item=item,
          user= request.user,
          ordered=False,
      )
      order_qs = Order.objects.filter(user=request.user, ordered=False)
      if order_qs.exists():
          order = order_qs[0]
          if order.items.filter(item__slug=item.slug).exists():
              order_item.quantity += 1
              order_item.save()
              print(request.POST.get('variations', None)) 
              messages.success(request, "Product quantity has been updated.")
          else:
              order.items.add(order_item)
              print(request.POST.get('variations', None)) 
              messages.success(request, "Product added to cart.")
              return redirect("order-summary")
      else:
          ordered_date = timezone.now()
          order = Order.objects.create(user=request.user, ordered_date=ordered_date)
          order.items.add(order_item)
          print(request.POST.get('variations', None)) 
          messages.success(request, "Product added to cart.")
          return redirect("order-summary")
      return redirect("order-summary")
  </code></pre>