semvec/pypi-packages huggingface dataset:
django-csv-admin 1.0.6
Simple app which includes ModelAdmin class for importing/exporting model data to csv file
License: MIT
Requires Python: >=3.6

This app includes model admin class for csv exporting and importing.

For installation just add 'csv_admin' to your INSTALLED_APPS

For usage add in admin.py file::


    from csv_admin.admin import CSVExportAdmin


    class MyAdmin(CSVExportAdmin):
        date_field = 'created_at'
        export_select_related = ['related_field_name']

        def _get_sum(self):
            sum = 1 + 2
            return sum

        def get_additional_fields(self) -> list:
            return ['sum']

        def get_additional_fields_params(self) -> dict:
            return {'sum': self._get_sum}


CHANGELOG:

1.0.5: Fixed custom url issues

1.0.6: Fixed duplicating of date_field