title: Saving FieldIn Django Via API Call
body: <p>I'm trying to create a new CustomerDetail object whenever an api is called.But the issue is, Whenever I try to create something for the favorite meal multi-selectfield, I get this error:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>MultiValueDictKeyError at /api/customer/favorite_meal/
  "'favorite_meal'"</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is the api:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@csrf_exempt
  def favorite_meal(request):
  
      if request.method == "POST":
  
        access_token = AccessToken.objects.get(token = request.GET.get("access_token"),
        expires__gt = timezone.now())
  
        customer = access_token.user.customer
  
      details = CustomerDetailSerializer(
              CustomerDetails.objects.create(
              customer = customer,
              favorite_mean = request.POST["favorite_meal"]
              ))
  
      return JsonResponse({"status" : "success"})</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here are my models:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>class CustomerDetails(models.Model):
      customer = models.ForeignKey(Customer, on_delete=models.CASCADE, related_name='customer')
  
      TYPE = (
      ('Time', (
          ('Breakfast', 'Breakfast'),
          ('Lunch', 'Lunch'),
          ('Dinner', 'Dinner'),
              )),
          )
     
      favorite_meal = MultiSelectField(choices=TYPE)
      interested_in = MultiSelectField(choices=CATEGORIES)
      likes = models.ManyToManyField('Product')
      completed_orders = models.IntegerField(default = "0", blank=True)
      shares = models.IntegerField(default = "0", blank=True)
      average_order = models.FloatField(default = "0.0", blank=True)
  
      def __str__(self):
          return self.customer.user.get_full_name()</code></pre>
  </div>
  </div>
  </p>
  
  <p>In the request, I'm trying to select breakfast and lunch via the api. How would I do this?</p>
  
  <p>Sending Params:</p>
  
  <p>The status says success but, there is no Customer data in details</p>
  
  <p><a href="https://i.stack.imgur.com/5gXIH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5gXIH.png" alt="enter image description here"></a></p>