Need to move 50 posts from draft to published, or fix prices on 30 products after a sale? Opening each record in Django admin to edit it is slow and error-prone. The ModelAdmin attribute list_editable turns columns on the list page into input fields, letting you edit and save many rows at once with a single Save button — no extra package needed.

The Problem

Say your blog has an Article model with a status field offering two choices, draft and published. With the default admin setup, the list page is view-only: to change one post’s status you have to click its title, wait for the detail page to load, change the select box, click Save, and go back to the list. Do that for 20 posts and you repeat the same loop 20 times. A typical default admin looks like this:

# blog/admin.py
from django.contrib import admin
from .models import Article
@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "status", "published_at")
list_filter = ("status",)

The Solution

Add a single list_editable line to your ModelAdmin and the status column instantly becomes a select box right on the list page:

@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "status", "published_at")
list_display_links = ("title",)
list_editable = ("status",)
list_filter = ("status",)

Once you have edited several rows, click the Save button at the bottom of the page — Django collects all the changes into one formset and saves them together, much faster than opening each record. Three rules you must remember:

  • Every field in list_editable must also appear in list_display — if it is not shown, it cannot be edited, and Django raises admin.E122 when you run python manage.py check.
  • A field cannot be both a link and editable: a field in list_editable must not be in list_display_links. By default the first column of list_display is the link, so to edit the first column, move the link to another column with list_display_links.
  • It does not work with ManyToMany fields — they cannot even be shown in list_display (error admin.E109). ForeignKey, BooleanField, and fields with choices work normally.

Apply It to Your Project

In a real project, list_editable shines on repetitive work: approving a batch of posts waiting to be published, updating prices and stock after a sale, toggling the is_featured flag for the homepage. A quick rule of thumb: when many rows need the same value, a bulk action is faster; when each row needs a different value, list_editable is the right choice. Add list_select_related too if the column you edit is a ForeignKey, so the list page does not run into the N+1 query problem.

Related Posts

Frequently Asked Questions

Does editing on the list page call the model’s save() and signals?

Yes. The list page saves through a ModelForm formset, so save() still runs and signals such as post_save still fire — unlike QuerySet.update(), which skips both.

Can I edit a ManyToMany field right on the list page?

No. A ManyToMany field cannot be shown in list_display (error admin.E109), so it cannot go into list_editable either. To edit a many-to-many relation, open the detail form or use an Inline in the admin.

If one row has an error, are the other rows still saved?

No. All the changes live in one formset and are only saved when every row is valid. The admin clearly marks the row with the error; fix it and click Save again.

How do I edit the first column in list_display?

Move the link to another column with list_display_links. For example, setting list_display_links = ("published_at",) means the title column is no longer a link and can go into list_editable.

Does list_editable slow down the list page?

A little, because each row carries an extra form, but with the default 100 rows per page it still feels smooth. If the edited column is a ForeignKey, remember to add list_select_related to avoid N+1 queries.

💬 Have you tried this in your own project yet? If you hit an error or know a shorter way, leave a comment below — I read them all and will fold the best ideas into this post.

References