Add reports, report reasons, bans, and ban templates

Reports are created by users.

Bans are created by moderators, in response to reports.

Report reasons and ban templates are created by admins, which give a
template for reports sent and bans issued.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-05-07 17:35:47 -07:00
parent 1aa263fd7d
commit 2940affae3
2 changed files with 63 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
from django.contrib import admin
from board.models import Board, Post
from board.models import Board, Post, ReportReason, Report
@admin.register(Board)
@@ -10,3 +10,13 @@ class BoardAdmin(admin.ModelAdmin):
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
pass
@admin.register(ReportReason)
class ReportReasonAdmin(admin.ModelAdmin):
pass
@admin.register(Report)
class ReportAdmin(admin.ModelAdmin):
pass