title: Check in DeleteView if its post or get? django
body: <p>Im trying to check either a user tried to enter a url by himself or he follows the urls and put the values needed in the form i build for him..
  In some Ungeneric class, I can check that thing - </p>
  
  <pre><code>if request.method == 'GET': 
  </code></pre>
  
  <p>But in DeleteView i can't do that thing so i don't know how to prevent from the user from doing bad things by input url by himself.
  How can i use a function that does the same in generic View and checks if the user enter a url by himself or fill in the form?</p>