From 1a849c4fb29abe11dfe65a76aa1bea63b82ecde6 Mon Sep 17 00:00:00 2001 From: Daniel W Bond Date: Tue, 3 Mar 2020 16:46:09 -0500 Subject: [PATCH] removed unnecessary context_object_names from students when default is fine --- bookshare/core/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bookshare/core/views.py b/bookshare/core/views.py index 4fc28b5..2ee1461 100644 --- a/bookshare/core/views.py +++ b/bookshare/core/views.py @@ -15,7 +15,6 @@ from trades.models import Listing, Bid, Rating class DetailStudent(LoginRequiredMixin, DetailView): model = Student template_name = 'profile.html' - context_object_name = 'student' login_url = 'login' def get_context_data(self, **kwargs): @@ -89,7 +88,6 @@ class UpdateStudent(LoginRequiredMixin, FormView): class StudentRatings(LoginRequiredMixin, DetailView): model = Student template_name = 'ratings.html' - context_object_name = 'student' login_url = 'login' def get_context_data(self, **kwargs): -- GitLab