I am trying to customize the admin panel. I am displaying an editable list for bulk editing. How can I increase the width of the text boxes so I can read the full sentence without scrolling left to right and vice versa. Can anyone help? Here is my code for admin.py and a picture to make my point clear:

from django.contrib import admin
from . models import Sentence

@admin.register(Sentence)
class PostAdmin(admin.ModelAdmin):
    list_display = ('sent_correct',)
    list_editable = ('sent_correct',)
    list_display_links = None
    list_filter = ('author', 'pub_date')
    raw_id_fields = ('author',)
    search_fields = ['sent_correct']
    date_hierarchy = 'pub_date'

https://imgur.com/TTUSt6n

0 Answers