> For the complete documentation index, see [llms.txt](https://www.dicas-de-django.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.dicas-de-django.com.br/028-admin-usando-short-description.md).

# Dica 28 - Admin: Usando short description

[![](/files/-MfuAOwUjEsk4qZiRsOx)](https://youtu.be/Uwwr77SR8EE)

Quando não conseguimos usar o `dunder` no `list_display` do admin, então usamos o `short_description`.

```python
@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'slug', 'get_published_date', 'get_category')
    ...

    def get_published_date(self, obj):
        if obj.published_date:
            return obj.published_date.strftime('%d/%m/%Y')

    get_published_date.short_description = 'Data de Publicação'

    def get_category(self, obj):
        if obj.category:
            return obj.category.title

    get_category.short_description = 'Categoria'
```
