title: how to log all request in tastypie django
body: <p>I have used tastypie in django to handle REST api request. When ever I do GET/POST request it comes to dehydrate method by default. But for DELETE/PUT request it doesn't have any method tastypie handles it, so there is no way to log request information.</p>
  
  <pre><code>class ProjectResource(ModelResource):
      allowed_methods = ['get', 'put', 'post', 'delete']
      resource_name = 'project'
      queryset = Project.objects.all()
      validation = FormValidation(form_class=ProjectForm)
      always_return_data = True
      filtering = {
          'id': ALL,
          'slug': ALL,
          }
  
  def dehydrate(self, bundle):
      import pdb;pdb.set_trace()   #--&gt; get/post request hit this function
      logger.log('app.main','debug', 'Project info', bundle)
      bundle.data['name'] = cgi.escape(bundle.obj.name)
      return bundle
  </code></pre>
  
  <p>Is there any function to override ModelResource in tastypie.resource module? so that for all request i get the bundle data first and then i will pass that to logger before it is processed.</p>