Reputation: 65
I have only one (first - username) column of my database displayed in admin. How can I display all columns in "Select to change" panel, like on the picture? Thanks in advance!
Upvotes: 0
Views: 35
Reputation: 3328
class PersonAdmin(admin.ModelAdmin):
list_display = ('first_name', 'last_name')
Upvotes: 1
Reputation: 308999
In your model admin, set list_display
to the list of fields that you want to display.
class MyModelAdmin(admin.ModelAdmin):
list_display = ['field_1', 'field_2', ...]
admin.site.register(MyModel, MyModelAdmin)
Upvotes: 1