Commit bd8eb53d authored by impfundev's avatar impfundev

fix: book template file name

parent 7a65a138
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
> >
<i class="bi bi-plus-circle"></i> Add Book <i class="bi bi-plus-circle"></i> Add Book
</button> </button>
{% include "create_form.html" %} {% include "book_create_form.html" %}
</div> </div>
{% include "table_data.html" %} {% include "delete_form.html" %} {% include "book_table_data.html" %} {% include "book_delete_form.html" %}
</div> </div>
{% endblock dashboard %} {% endblock dashboard %}
...@@ -18,7 +18,7 @@ def index(request): ...@@ -18,7 +18,7 @@ def index(request):
Book.objects.create(title=title, description=description) Book.objects.create(title=title, description=description)
return render(request, "index.html", context) return render(request, "book.html", context)
def update(request, id): def update(request, id):
...@@ -51,4 +51,4 @@ def delete(request, id): ...@@ -51,4 +51,4 @@ def delete(request, id):
book.delete() book.delete()
return HttpResponseRedirect("/dashboard/books") return HttpResponseRedirect("/dashboard/books")
return render(request, "index.html", context) return render(request, "book.html", context)
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