download_csv name changed to export (.csv)
This commit is contained in:
parent
0136386ad0
commit
e9ec1909b4
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ def download_csv(modeladmin, request, queryset):
|
|||
temp_list = (list(dic.values()))
|
||||
writer.writerow(temp_list)
|
||||
return response
|
||||
|
||||
download_csv.short_description = 'export (.csv)'
|
||||
|
||||
class PeopleResourceInline(admin.TabularInline):
|
||||
autocomplete_fields = ['resource']
|
||||
model = PeopleResource
|
||||
|
|
Loading…
Reference in a new issue