title: tastypie filtering
body: <p>I am starting to use Django and tastypie, to interact with my database.</p>
  
  <p>So I have a database with a number of tables, and I can set up filtering, so that I can use a URL like so, using chains of  related Django objects to filter my results.  </p>
  
  <pre><code>api/seq/mapping/?loadedwith__lane__flowcell__name=C16P5ACXX&amp;loadedwith__lane__lane=8
  </code></pre>
  
  <p>the mapping resource is set up as follows:</p>
  
  <pre><code>class MappingResource(ModelResource):
      loadedwith = fields.ToOneField('sequencing.api.LoadedWithResource' , 'loadedwith' ) 
      class Meta:
          queryset = Mapping.objects.all()
          resource_name = 'mapping'
          allowed_methods = ['get' , 'post' , 'put' , 'patch' ,  'delete']
          authorization = Authorization()                        
          serializer = PrettyJSONSerializer()
          filtering = {
              'loadedwith': ALL_WITH_RELATIONS,
              'reference_filename' : ALL
          }
  </code></pre>
  
  <p>This all works fine, as I would expect it to.</p>
  
  <p>Now I noticed a problem when I messed up the URL. 
  If I miss out one of the loadedwith objects on the chain e.g. </p>
  
  <pre><code>loadedwith__lane__lane=8
  </code></pre>
  
  <p>and instead use </p>
  
  <pre><code>lane__lane=8
  </code></pre>
  
  <p>so the url ends up as: </p>
  
  <pre><code>api/seq/mapping/?loadedwith__lane__flowcell__name=C16P5ACXX&amp;loadedwith__lane__lane=8
  </code></pre>
  
  <p>Now this returns the results filtered by the first part:</p>
  
  <pre><code>loadedwith__lane__flowcell__name=C16P5ACXX
  </code></pre>
  
  <p>but basically ignoring the second part</p>
  
  <pre><code>lane__lane=8
  </code></pre>
  
  <p>I would have expected it to throw an error, or not return anything. Is there a way to configure tastypie to throw an error in this situation? (Or is this an expected behaviour for some reason I am unaware of)?</p>