title: Delete objects in django and api
body: <p>I want delete an objects from my model in django and api!
  can anyone help me?</p>
  <p>The code that i wrote:</p>
  <pre><code>@csrf_exempt
  def delete(request,news_id):
      if request.method == 'DELETE':
          News.objects.filter(id=news_id).delete()
          return JsonResponse({'message':'***'},safe=False)
      else:
          return JsonResponse({'message':'***'},safe=False)
  </code></pre>