Commit 717a5f34 authored by Migs Atienza's avatar Migs Atienza

Created Admin + Superuser

parent 7f2f9d39
No preview for this file type
from django.contrib import admin from django.contrib import admin
from .models import ForumPost, Reply
class ForumPostAdmin(admin.ModelAdmin):
model = ForumPost
class ReplyAdmin(admin.ModelAdmin):
model = Reply
# Register your models here. # Register your models here.
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