Commit db2065e9 authored by karin-kurusu's avatar karin-kurusu

Created and implemented "Edit Author Page"

parent 1ecacda9
Pipeline #3140 canceled with stages
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Author{% endblock %}
{% block content %}
<form action='' method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Changes">
</form>
{% endblock %}
\ No newline at end of file
from django.urls import path from django.urls import path
from .views import home, BooksList, BooksDetails, AuthorList, AuthorDetails, BooksCreate, AuthorCreate, BooksUpdate from .views import home, BooksList, BooksDetails, AuthorList, AuthorDetails, BooksCreate, AuthorCreate, BooksUpdate, AuthorUpdate
urlpatterns = [ urlpatterns = [
path('home/', home, name='home'), path('home/', home, name='home'),
...@@ -10,6 +10,7 @@ urlpatterns = [ ...@@ -10,6 +10,7 @@ urlpatterns = [
path('authors/', AuthorList.as_view(), name="authors"), path('authors/', AuthorList.as_view(), name="authors"),
path('authors/<int:pk>/details', AuthorDetails.as_view(), name='author_details'), path('authors/<int:pk>/details', AuthorDetails.as_view(), name='author_details'),
path('authors/add', AuthorCreate.as_view(), name='add-author'), path('authors/add', AuthorCreate.as_view(), name='add-author'),
path('authors/<int:pk>/edit', AuthorUpdate.as_view(), name='edit-author'),
] ]
app_name = "bookshelf" app_name = "bookshelf"
\ No newline at end of file
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