It seems that Django happens to just use a <p>
Tag for read-only text fields inside forms (at least tabular inlines in admin forms).
What I want is, to display an URL inside a tabular inline (just using one line if possible). Unfortunately that URL tends to be rather long. So the best would be, when the URL would be inside some text field, where I can scroll or just select the whole content with CNTRL-A to get the link.
But the field should be read-only. When I do that in the admin, it changes the whole output to <p>
and thus the URL will be displayed in full length and taking over the whole width of the screen -- and compressing other fields -- what is rather ugly.
Any solution?
` tag happens to take over the whole horizontal space. It would be OK, when the string is cut at some point (like it happens inside some `` field. But I can't cut the content itself, since it should be copy-able in full.
– Juergen Jun 29 '21 at 19:17tag. This link contains some examples: https://stackoverflow.com/questions/910169/resize-fields-in-django-admin
– because_im_batman Jun 29 '21 at 19:25