Commit ca2752f6 authored by Daniel W Bond's avatar Daniel W Bond

removed unnecessary context_object_names from lookouts when default is fine

parent 00db32c7
......@@ -17,7 +17,6 @@ from core.models import Student
class CreateLookout(LoginRequiredMixin, CreateView):
model = Lookout
form_class = LookoutForm
context_object_name = 'lookout'
template_name = 'create_lookout.html'
login_url = 'login'
......@@ -42,7 +41,6 @@ class CreateLookout(LoginRequiredMixin, CreateView):
class DetailLookout(LoginRequiredMixin, DetailView):
model = Lookout
context_object_name = 'lookout'
template_name = 'detail_lookout.html'
login_url = 'login'
......@@ -60,7 +58,6 @@ class DetailLookout(LoginRequiredMixin, DetailView):
class DeleteLookout(LoginRequiredMixin, FormValidMessageMixin, DeleteView):
model = Lookout
context_object_name = 'lookout'
template_name = 'delete_lookout.html'
success_url = '/'
login_url = 'login'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment