Commit 1bc8589a authored by Trisha Angel Millena's avatar Trisha Angel Millena

made admin panel

parent 4ad3ae3d
from django.contrib import admin
from .models import ForumPost, Reply
# Register your models here.
class ForumPostAdmin(admin.ModelAdmin):
model = ForumPost
list_display = ('title', 'body', 'pub_datetime')
class ReplyAdmin(admin.ModelAdmin):
model = Reply
list_display = ('body', 'pub_datetime')
admin.site.register(ForumPost, ForumPostAdmin)
admin.site.register(Reply, ReplyAdmin)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment