                  'on a view which does not have a .model or .queryset attribute.'
  
              class AutoFilterSet(self.default_filter_set):
                  class Meta:
                      model = model_cls
                      fields = filter_fields
              return AutoFilterSet
  
          return None
  
 
</s> remove             assert model_cls is not None, 'Cannot use DjangoFilterBackend ' \
                'on a view which does not have a .model or .queryset attribute.'

 </s> add  </s> remove             assert issubclass(filter_model, model_cls), \
                'FilterSet model %s does not match view model %s' % \
                (filter_model, model_cls)
 </s> add             assert issubclass(filter_model, queryset.model), \
                'FilterSet model %s does not match queryset model %s' % \
                (filter_model, queryset.model) </s> remove         filter_class = self.get_filter_class(view)
 </s> add         filter_class = self.get_filter_class(view, queryset)
                    model = queryset.model
                  'on a view which does not have a .model or .queryset attribute.'
  
              class AutoFilterSet(self.default_filter_set):
                  class Meta:
                    model = queryset.model
                      fields = filter_fields
              return AutoFilterSet
  
          return None
  
keep keep keep keep replace keep keep keep keep keep
 Base automatic filterset model on the queryset model.  Fixes #834. 
rest_framework/filters.py