title: Deleting objects in Django
body: <p>In a mini blog app, I want to create a delete function, so that the owner of the blog can delete his entries (and only his entries).
  I guess that the only methods for doing do, is using a form.
  Though my the deletion code seems clear and correct, it doesn't work.
  My code:</p>
  
  <pre><code>def delete_new(request,id):
     u = New.objects.get(pk=id).delete()
     if request.method == 'POST':
         form = DeleteNewForm(request.POST)    
         form.u.delete()             
         form.save()   
     return render_to_response('news/deleteNew.html', {
             'form': form,
             }, 
          context_instance=RequestContext(request)) 
  </code></pre>
  
  <p>and in the template:</p>
  
  <pre><code>&lt;a href='/news/delete_new/{{object.id}}/'&gt; Delete&lt;/a&gt; &lt;br /&gt; 
  </code></pre>
  
  <p>Is this a correct approach? I mean, creating a form for this?
  also, the only way to take the blog post associated with the deletion link is having an id as a parameter. Is it right? I mean, maybe any user can type another id, in the url, and delete another entry (eventually not one of his)</p>