<gh_stars>0
from django.contrib import admin
from hello.models import Post


class PostAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'content')
    search_fields = ('title', 'content')


admin.site.register(Post, PostAdmin)

from django.contrib import admin
from hello.models import Post


class PostAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'content')
    search_fields = ('title', 'content')


admin.site.register(Post, PostAdmin)