title: How to update an object of model in django using update_or_create
body: <p>I want to update an object of a model using update_or_create method. But when I use this, another object is created.
  My models.py:</p>
  
  <pre><code>class SubmitHobby(models.Model):
      M_id=models.IntegerField(default=0)
      name=models.CharField(max_length=255)
      mob=models.IntegerField(default=0,blank=True,null=True)
      is_approve=models.BooleanField(default=False)
  </code></pre>
  
  <p>I want to update <code>is_approve</code> field on the basis of M_id (M_id=234).</p>
  
  <pre><code>def approve(request):
  
      context = RequestContext(request)
      name= = request.GET.get('name')
      mid=request.GET.get('M_Id')
  
      obj=SubmitHobby.objects.update_or_create(M_id=mid)
      obj.is_approve=True
      obj.save()
  </code></pre>