Commit ba36e438 authored by Fritzie Dianne Del Pilar's avatar Fritzie Dianne Del Pilar
parents 52037fbb 3a9504ac
from django.contrib import admin from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import ForumPost, Reply
class ForumPostAdmin(admin.ModelAdmin):
model = ForumPost
search_fields = ('title', 'body', 'author',)
list_display = ('title', 'body', 'author', 'pub_datetime',)
list_filter = ('title', 'author', 'pub_datetime',)
class ReplyAdmin(admin.ModelAdmin):
model = Reply
search_fields = ('body', 'author',)
list_display = ('body', 'author', 'pub_datetime',)
list_filter = ('author', 'pub_datetime')
from .models import ForumPost, Reply from .models import ForumPost, Reply
......
...@@ -17,7 +17,6 @@ from django.contrib import admin ...@@ -17,7 +17,6 @@ from django.contrib import admin
from django.urls import path, include from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('forum/', include('forum.urls', namespace="forum")),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('announcement_board/', include('announcement_board.urls', namespace='announcement_board')), path('announcement_board/', include('announcement_board.urls', namespace='announcement_board')),
path('dashboard/', include('dashboard.urls', namespace="dashboard")), path('dashboard/', include('dashboard.urls', namespace="dashboard")),
......
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