PythonBulawayo/ChitChat

Improve how posts look in the admin

Ouverte

#36 ouverte le 9 févr. 2024

 (5 commentaires) (0 réaction) (0 personne assignée)TypeScript (24 forks)auto 404
backendgood first issue

Métriques du dépôt

Stars
 (25 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur