views.py 331 Bytes
Newer Older
Jason D Yeomans's avatar
Jason D Yeomans committed
1
2
from django.shortcuts import render

3
4
from django.views.generic import DetailView, ListView, CreateView, UpdateView, DeleteView

5
from accounts.models import Student
6
7
8
9
10
11
12

from braces.views import LoginRequiredMixin

# details about the student
class DetailStudent(LoginRequiredMixin, DetailView):
    model = Student
    login_url = '/'