You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
neptune/core/views/manage/threshold/threshold.py

20 lines
586 B
Python

from django.shortcuts import render
from django.views import View
from core.views.manage.permissions import SuperUserRequiredMixin
class ThresholdIRCOverview(SuperUserRequiredMixin, View):
template_name = "manage/threshold/irc/overview/overview.html"
def get(self, request):
return render(request, self.template_name)
class ThresholdIRCNetwork(SuperUserRequiredMixin, View):
template_name = "manage/threshold/irc/network/network.html"
def get(self, request, net):
context = {"net": net}
return render(request, self.template_name, context)