Commit 34c7ac84 authored by Daniel W Bond's avatar Daniel W Bond

changed order of views to make more sense

parent 0f1b2186
......@@ -58,20 +58,18 @@ class DetailStudent(LoginRequiredMixin, DetailView):
login_url = '/'
# changeable student settings
class DetailStudentSettings(LoginRequiredMixin, DetailView):
model = Student
login_url = '/'
class DetailCurrentStudent(LoginRequiredMixin, DetailView):
#model = Student
def get_object(self):
return get_object_or_404(Student, pk=self.request.session['_auth_user_id'])
class DetailCurrentStudentSettings(LoginRequiredMixin, DetailView):
# changeable student settings
class DetailStudentSettings(LoginRequiredMixin, DetailView):
model = Student
login_url = '/'
class DetailCurrentStudentSettings(LoginRequiredMixin, DetailView):
#model = Student
def get_object(self):
......
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