Commit ff06d1ce authored by MJoshBen's avatar MJoshBen

Edited Slight Errors found in URLs and Author Details

parent 210ed8fa
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<h3>{{ author.age }}<br> <h3>{{ author.age }}<br>
{{ author.nationality }}<br> {{ author.nationality }}<br>
{{ author.bio }}</h3> {{ author.bio }}</h3>
<a href="/authors/{{ author.pk }}/edit"><input type="submit" value="Edit Book"></a><br> <a href="/authors/{{ author.pk }}/edit"><input type="submit" value="Edit Author"></a><br>
<h3> Books by {{ author }} I love:</h3> <h3> Books by {{ author }} I love:</h3>
<ul> <ul>
{% for book in author.books_set.all %} {% for book in author.books_set.all %}
......
...@@ -11,7 +11,7 @@ urlpatterns = [ ...@@ -11,7 +11,7 @@ urlpatterns = [
path('authors/', AuthorListView.as_view(), name='authors-list'), path('authors/', AuthorListView.as_view(), name='authors-list'),
path('authors/<int:pk>/details', AuthorDetailView.as_view(), name='author-details'), path('authors/<int:pk>/details', AuthorDetailView.as_view(), name='author-details'),
path('authors/add/', AuthorCreateView.as_view(), name='add-author'), path('authors/add/', AuthorCreateView.as_view(), name='add-author'),
path('authors/<int:pk>/edit', AuthorUpdateView.as_view(), nme='edit-author'), path('authors/<int:pk>/edit', AuthorUpdateView.as_view(), name='edit-author'),
] ]
app_name = "bookshelf" app_name = "bookshelf"
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