Commit e93041db authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited homeview in views.py

parent 748e1e05
......@@ -5,8 +5,9 @@ from .models import Author, Books
# Create your views here.
def HomeView(request):
return render(request, 'bookshelf/home.html', {'nickname': 'Jan'})
class HomeView:
def get(self, request):
return render(request, 'bookshelf/home.html', {'nickname': 'Jan'})
class AuthorView(ListView):
model = Author
......
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