PythonBulawayo/ChitChat

Improve how posts look in the admin

開放

#36 建立於 2024年2月9日

 (5 則留言) (0 個反應) (0 位負責人)TypeScript (24 個分叉)auto 404
backendgood first issue

倉庫指標

星標
 (25 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The way posts are rendered in the Django Admin does not provide any helpful information about the post or its author. Change how the Admin displays the post information. We can display the post author's username when the post was created and a few characters of the post body. This is a straightforward change that can be made by adding a __str__() method to the Post Model.

This is what we currently have: image

We want to have something like this:

image

貢獻者指南