download_csv name changed to export (.csv)

This commit is contained in:
asamihassan 2022-03-25 23:35:38 +05:00
parent 0136386ad0
commit e9ec1909b4

View file

@ -23,6 +23,9 @@ def download_csv(modeladmin, request, queryset):
temp_list = (list(dic.values())) temp_list = (list(dic.values()))
writer.writerow(temp_list) writer.writerow(temp_list)
return response return response
download_csv.short_description = 'export (.csv)'
class PeopleResourceInline(admin.TabularInline): class PeopleResourceInline(admin.TabularInline):
autocomplete_fields = ['resource'] autocomplete_fields = ['resource']
model = PeopleResource model = PeopleResource