def get_export_data(self, file_format, queryset, *args, **kwargs):
resource_class = self.get_export_resource_class()<EOL>data = resource_class(**self.get_export_resource_kwargs(self.request)).export(queryset, *args, **kwargs)<EOL>export_data = file_format.export_data(data)<EOL>return export_data<EOL>
Returns file_format representation for given queryset.