from django.shortcuts import render

# Create your views here.

class AdminFrontpageView():


class UserReportDetailsView():


class MessageReportDetailsView():


class AdminOverviewView():


@login_required
def delete_reported_post():


@login_required
def promote_user_to_admin():


@login_required
def demote_admin_to_user():


@login_required
def report_user():


@login_required
def report_message():


@login_required
def ban_user():


from django.shortcuts import render
from buzzit_models.models import *
from django.contrib.auth.decorators import login_required
import json

class AdminFrontpageView():


class UserReportDetailsView(ListView):


class MessageReportDetailsView(ListView):


class AdminOverviewView(ListView):


@login_required
def delete_reported_post(request, message_id):


@login_required
def promote_user_to_admin(request, user_id):


@login_required
def demote_admin_to_user(request, user_id):


@login_required
def report_user(request, user_id):


@login_required
def report_message(request, message_id):


@login_required
def ban_user(request, user_id):

Update views.py