import csv

from django.http import HttpResponse


class ExportCsvMixin:
    def export_as_csv(self, request, queryset):

        meta = self.model._meta
        field_names = [field.name for field in meta.fields]

        response = HttpResponse(content_type='text/csv')
        response['Content-Disposition'] = 'attachment; filename={}.csv'.format(meta)
        writer = csv.writer(response)

        writer.writerow(field_names)
        for obj in queryset:
            writer.writerow([getattr(obj, field) for field in field_names])

        return response

    export_as_csv.short_description = "선택된 항목 을/를 CSV 로 내보냅니다."

@@ -257,17 +257,17 @@
 ype=
-'
+%22
 text/csv
 ')%0A 
@@ -262,17 +262,17 @@
 text/csv
-'
+%22
 )%0A      
@@ -282,17 +282,17 @@
 esponse%5B
-'
+%22
 Content-
@@ -306,14 +306,14 @@
 tion
-'
+%22
 %5D = 
-'
+%22
 atta
@@ -339,9 +339,9 @@
 .csv
-'
+%22
 .for

fix code style