Commit 1a849c4f authored by Daniel W Bond's avatar Daniel W Bond

removed unnecessary context_object_names from students when default is fine

parent ca2752f6
...@@ -15,7 +15,6 @@ from trades.models import Listing, Bid, Rating ...@@ -15,7 +15,6 @@ from trades.models import Listing, Bid, Rating
class DetailStudent(LoginRequiredMixin, DetailView): class DetailStudent(LoginRequiredMixin, DetailView):
model = Student model = Student
template_name = 'profile.html' template_name = 'profile.html'
context_object_name = 'student'
login_url = 'login' login_url = 'login'
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
...@@ -89,7 +88,6 @@ class UpdateStudent(LoginRequiredMixin, FormView): ...@@ -89,7 +88,6 @@ class UpdateStudent(LoginRequiredMixin, FormView):
class StudentRatings(LoginRequiredMixin, DetailView): class StudentRatings(LoginRequiredMixin, DetailView):
model = Student model = Student
template_name = 'ratings.html' template_name = 'ratings.html'
context_object_name = 'student'
login_url = 'login' login_url = 'login'
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
......
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