Commit 83dd6e71 authored by rubbersoulz's avatar rubbersoulz

Added admin view for forum

parent 5475922c
from django.contrib import admin from django.contrib import admin
# Register your models here. from .models import Post
class PostAdmin(admin.ModelAdmin):
model = Post
list_display = ('post_title', 'post_body', 'pub_date')
admin.site.register(Post, PostAdmin)
\ 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