from django.contrib import admin
from .models import Post, Category, Comment
admin.site.register(Post)


class PostAdmin(admin.ModelAdmin):
    fields = ['id', 'title', 'body', 'categories', 'postimage']


admin.site.register(Category)


class CategoryAdmin(admin.ModelAdmin):
    fields = ['id', 'name']


admin.site.register(Comment)


class CommentAdmin(admin.ModelAdmin):
    fields = ['id', 'author', 'body', 'created', 'updated', 'post']

a23a50c14b389e74f8e3f690533047733a3fcb20
<mask token>


class CategoryAdmin(admin.ModelAdmin):
    fields = ['id', 'name']


<mask token>


class CommentAdmin(admin.ModelAdmin):
    fields = ['id', 'author', 'body', 'created', 'updated', 'post']

<mask token>


class PostAdmin(admin.ModelAdmin):
    fields = ['id', 'title', 'body', 'categories', 'postimage']


<mask token>


class CategoryAdmin(admin.ModelAdmin):
    fields = ['id', 'name']


<mask token>


class CommentAdmin(admin.ModelAdmin):
    fields = ['id', 'author', 'body', 'created', 'updated', 'post']

<mask token>
admin.site.register(Post)


class PostAdmin(admin.ModelAdmin):
    fields = ['id', 'title', 'body', 'categories', 'postimage']


admin.site.register(Category)


class CategoryAdmin(admin.ModelAdmin):
    fields = ['id', 'name']


admin.site.register(Comment)


class CommentAdmin(admin.ModelAdmin):
    fields = ['id', 'author', 'body', 'created', 'updated', 'post']

from django.contrib import admin
from .models import Post, Category, Comment
admin.site.register(Post)


class PostAdmin(admin.ModelAdmin):
    fields = ['id', 'title', 'body', 'categories', 'postimage']


admin.site.register(Category)


class CategoryAdmin(admin.ModelAdmin):
    fields = ['id', 'name']


admin.site.register(Comment)


class CommentAdmin(admin.ModelAdmin):
    fields = ['id', 'author', 'body', 'created', 'updated', 'post']
