aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/views.py
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-10-10 23:33:11 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-10-10 23:33:11 -0400
commit5369537388a3239f3f19080053fcdab6ad9b95eb (patch)
treee629c68fb17527ee3eb441c4dd1945e39d7e032d /app/dispatch/views.py
parent2ec4f69f6f494def901826ad8fdbfb05d2fcfb75 (diff)
downloaddispatch-tracker-5369537388a3239f3f19080053fcdab6ad9b95eb.tar.gz
dispatch-tracker-5369537388a3239f3f19080053fcdab6ad9b95eb.tar.xz
Rip out registration and the audit log for now. Upgrade to Django 3.2
Diffstat (limited to 'app/dispatch/views.py')
-rw-r--r--app/dispatch/views.py9
1 files changed, 0 insertions, 9 deletions
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