Sunday, November 22, 2015

How to wrap text on Django admin columns with long text?

In Django's admin interface, on the table displaying all the items in my database, sometimes a column gets too big, because an item has a long line of text at this field. This looks ugly and makes the table hard to use. I want to fix this by automatically adding line breaks (that is, wrapping long lines) after a given maximum of characters. Is there an easy way to do this?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/01871e6a-fefe-447f-a38f-5a9fc1f1c82c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment