开发者

Django admin rename image to [IMG]

开发者 https://www.devze.com 2023-03-03 16:20 出处:网络
I have a field in database which开发者_开发百科 is use to save a description with rich textbox, below is the data:

I have a field in database which开发者_开发百科 is use to save a description with rich textbox, below is the data:

<p><img title="1" src="/media/upload/thumbnail.jpg" alt="1" width="60" height="60" />5th Freedom of the Air is:</p>

When I list in in the admin list(list_display), it shows me the description with image.

How can I change the to , so that it wont show image?

I want to display instead of


If I understand your question correctly, your text should be probably escaped before saving, see: http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#escape

0

精彩评论

暂无评论...
验证码 换一张
取 消