<reponame>yxs1112003/Django-read-python
# coding=utf-8
# 后台
from django.contrib import admin

from blog.models import Post, Comment, About


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = ('name',)


@admin.register(About)
class AboutAdmin(admin.ModelAdmin):
    list_display = ('about_me',)


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

# coding=utf-8
# 后台
from django.contrib import admin

from blog.models import Post, Comment, About


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = ('name',)


@admin.register(About)
class AboutAdmin(admin.ModelAdmin):
    list_display = ('about_me',)


@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
    list_display = ('title',)
# coding=utf-8 # 后台