Commit f35453ae authored by Deokhyun Lee's avatar Deokhyun Lee

books order inside author's view is in order.

parent 238c699e
Pipeline #2967 failed with stages
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{% if books %} {% if books %}
<ul> <ul>
{% for book in books %} {% for book in books %}
<a href="/books/{{book.id}}/details">{{ book.title }}</a><br> <a href="/books/{{book.id}}/details">{{ book.title }} {{ book.id }}</a><br>
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
......
...@@ -6,7 +6,7 @@ from .models import Author, Books ...@@ -6,7 +6,7 @@ from .models import Author, Books
# View for Home (landing page) # View for Home (landing page)
class HomeView(View): class HomeView(View):
def get(self, request): def get(self, request):
return render(request, 'home/index.html') return render(request, 'home/home.html')
# Views for Authors page # Views for Authors page
class AuthorListView(ListView): class AuthorListView(ListView):
......
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