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

3
4
5
6
7
8
9
10
11
12
from django.views.generic import DetailView, ListView, CreateView, UpdateView, DeleteView

from housing.models import Student

from braces.views import LoginRequiredMixin

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