title: How to export filtered data from django-filters in csv fromat
body: <p>I have a model like this:</p>
  
  <pre><code>class Location(models.Model):
      name = models.CharField(max_length=100)
      name_short_code = models.CharField(max_length=50)
      address = models.CharField(max_length=100)
  </code></pre>
  
  <p>and implemented django-filters like this:</p>
  
  <p>In <code>filter.py</code>:</p>
  
  <pre><code>from django_filters import rest_framework as filters
  from api.models import Location
  
  class LocationFilter(filters.FilterSet):
      id = filters.NumberFilter(lookup_expr='icontains')
      name = filters.CharFilter(lookup_expr='icontains')
      address = filters.CharFilter(lookup_expr='icontains')
  
      class Meta:
          model = Location
          fields = ['id', 'name', 'address',]
  
  
  </code></pre>
  
  <p>In <code>views.py</code>:</p>
  
  <pre><code>from api.filter import LocationFilter
  
  class LocationViewSet(viewsets.ModelViewSet):
      queryset = Location.objects.all()
      serializer_class = LocationSerializer
      filter_backends = [filters.DjangoFilterBackend]
      filterset_class = LocationFilter  
  
  </code></pre>
  
  <p>URL-<code>http://127.0.0.1:8000/api/location/?id=&amp;name=Cafe&amp;address=</code> return  all data consisting location named cafe.</p>
  
  <p>How can i export it to a <code>CSV</code> file?</p>