The packages Django-import-export provides such functionality in a fairly robust manner. Try that. I don’t see a reason to merge too much functionality into the core Django admin, as it will become a maintenance burden.
On Fri, 4 Jun 2021 at 16:51, Mohit Gupta <guptamohit1...@gmail.com> wrote: > Hello, > > I'm Mohit Gupta. 3rd year engineering student. I just have a > suggestion/idea which if implemented in Django it will be very helpful. > As I have faced difficulty in exporting Django admin model data to CSV. > I know there is a CLI-based command to export data into a json file format > *"python manage.py dumpdata application_name --indent=1 > file.json". *But > I think it will be a bit difficult for users to remember this command and > one loophole in this command is that it will pick all model data into a > single file and it will be hectic to get the particular model data. > So my idea is if there is a button in the admin panel to export particular > model data to a CSV file and download it, it will be very helpful for > developers to analyze data from a CSV file rather than finding data of a > particular model instance form a json file. This feature will also help > data science enthusiasts, as they need CSV file for training-testing > purposes. > > Thank you, > Mohit Gupta > *Linkedin:* https://www.linkedin.com/in/mohit-gupta-114711178/ > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/ae09bf60-0b2b-4b97-afed-d784ee7b853an%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/ae09bf60-0b2b-4b97-afed-d784ee7b853an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM3Uoro38bxgf94pasN56rFAzMwRLukBTKqD6F%3DVr5KmzA%40mail.gmail.com.