Implement joining and parting channels
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
from ast import literal_eval
|
||||
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.http import HttpResponse, HttpResponseForbidden, JsonResponse
|
||||
from django.shortcuts import render
|
||||
from django.views import View
|
||||
from rest_framework.parsers import FormParser
|
||||
from django.http import HttpResponse, HttpResponseForbidden, JsonResponse
|
||||
|
||||
from rest_framework.views import APIView
|
||||
|
||||
from core.lib.meta import get_meta
|
||||
from core.lib.nicktrace import get_nicks
|
||||
from core.lib.opensearch import query_single_result
|
||||
@@ -15,7 +17,6 @@ from core.lib.threshold import (
|
||||
get_chans,
|
||||
get_users,
|
||||
)
|
||||
from ast import literal_eval
|
||||
|
||||
|
||||
class Insights(LoginRequiredMixin, View):
|
||||
@@ -27,6 +28,7 @@ class Insights(LoginRequiredMixin, View):
|
||||
return render(request, "denied.html")
|
||||
return render(request, self.template_name)
|
||||
|
||||
|
||||
class InsightsSearch(LoginRequiredMixin, View):
|
||||
# parser_classes = [JSONParser]
|
||||
template_name = "ui/insights/info.html"
|
||||
|
||||
Reference in New Issue
Block a user