Commit 64906efc authored by Daniel W Bond's avatar Daniel W Bond
Browse files

change reference to foreignkey to make the field passed to context actually mean what it's named

parent 2cb0eea9
......@@ -132,6 +132,6 @@ class DetailRoom(LoginRequiredMixin, DetailView):
students = Student.objects.visible(requesting_student, self.get_object())
context['students'] = shadowbanning(requesting_student, students)
context['notOnFloor'] = not(requesting_student in self.get_object())
context['notInBuilding'] = not(requesting_student in self.get_object().building)
context['notOnFloor'] = not(requesting_student in self.get_object().floor)
context['notInBuilding'] = not(requesting_student in self.get_object().floor.building)
return context
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