Commits

Yohann Gabory  committed f0b4073

modified CsvGenericListView to make it more generic

  • Participants
  • Parent commits 6f29ffd

Comments (0)

Files changed (1)

File followerslookup/views.py

 
     
 
-class CsvGenericListView(ListView):
+class GenericListView(ListView):
     def get_queryset(self):
         qs = User.objects.all()
         if "user" in self.kwargs:
     def render_to_response(self,context):
         return self.get_csv_response(self.convert_context_to_csv(context))
 
-        
+class CsvGenericListView(GenericListView):
     
     def get_csv_response(self, content, **httpresponse_kwargs):
         "Construct an `HttpResponse` object."