Admin action for a "CSV Export" with ManyToManyField
Based on [#2369](https://djangosnippets.org/snippets/2369/) Save the snippet as actions.py within your django app, and then add an action on any model you want in it's ModelAdmin definition. Example usage: from actions import export_as_csv_action class YourModelAdmin(admin.ModelAdmin): list_display = (...) list_filter = [...] actions = [export_as_csv_action("CSV Export", fields=[...])]
- ManyToManyField
- Adminactions
- ManyToManyFields
- Export-CSV
- Adminaction
- CSV
- Export
- ManyToMany
- Many-to-many