mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-27 02:12:18 +00:00
Started work on Person modeling
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from django.shortcuts import render
|
||||
from django.http.response import HttpResponseRedirect
|
||||
from django.views import generic
|
||||
import models
|
||||
|
||||
# Create your views here.
|
||||
def login(request, **kwargs):
|
||||
@@ -8,4 +10,7 @@ def login(request, **kwargs):
|
||||
return HttpResponseRedirect(request.REQUEST.get('next', '/'))
|
||||
else:
|
||||
from django.contrib.auth.views import login
|
||||
return login(request)
|
||||
return login(request)
|
||||
|
||||
class PersonIndex(generic.ListView):
|
||||
model = models.Person
|
||||
Reference in New Issue
Block a user