from django.contrib import admin

from .models import Post

admin.site.register(Post)

from django.contrib import admin

from .models import Post


@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
    list_display = ('title', 'pub_date')

Define PostAdmin list_display.