From 5369537388a3239f3f19080053fcdab6ad9b95eb Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 10 Oct 2021 23:33:11 -0400 Subject: Rip out registration and the audit log for now. Upgrade to Django 3.2 --- app/dispatch/views.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'app/dispatch/views.py') diff --git a/app/dispatch/views.py b/app/dispatch/views.py index fc8bab2..60172bb 100644 --- a/app/dispatch/views.py +++ b/app/dispatch/views.py @@ -1,7 +1,6 @@ from django.shortcuts import render, redirect from django.http import HttpResponse from django.utils.encoding import smart_str -from auditlog.models import LogEntry # from django.template import loader from django.urls import reverse, reverse_lazy # import django.contrib.auth as auth @@ -180,14 +179,6 @@ class DriverSummary(UserPassesTestMixin, LoadDateSort): return context -class AuditLog(UserPassesTestMixin, ListView): - template_name = "dispatch/log/summary.html" - model = LogEntry - - def test_func(self): - return self.request.user.is_superuser - - class DriverUpdate(UserPassesTestMixin, UpdateView): template_name = "dispatch/drivers/edit.html" model = User -- cgit v1.2.3