Create multiple objects at once in django admin

For example, I have a Post model:

Class Post(models.Model): title = models.Charfield(max_length=200) # other fields 

I wonder if there is a way to create multiple posts at once in admin. In other words, I need a form, not one form on the page creation page.

+5
source share
2 answers

Perhaps the best way to do what you need is with the ModelAdmin class , since it has no forms other than those used by InlineFormsets.

After that, you can customize the admin change_form template to include your forms

A quick and dirty way to do this with admin is to wrap the Post model as an inline set of forms of another modeladmin and add the extra parameter to it.

+2
source

I recently heard about a django application that does the exact job. It was called django-bulk-admin and allows bulk adding / updating to admin.

+5
source

All Articles