Commit d5da860a authored by Javi Ng's avatar Javi Ng

fixed form functionality

parent ff678980
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% block title %} Add New Author {% endblock %} {% block title %} Add New Author {% endblock %}
{% block content %} {% block content %}
<form method="POST" action="details"> <form method="POST">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% block title %} Add New Book {% endblock %} {% block title %} Add New Book {% endblock %}
{% block content %} {% block content %}
<form method="POST" action="details"> <form method="POST">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% block title %} Edit Author {% endblock %} {% block title %} Edit Author {% endblock %}
{% block content %} {% block content %}
<form method="POST" action="details"> <form method="POST">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% block title %} Edit Book {% endblock %} {% block title %} Edit Book {% endblock %}
{% block content %} {% block content %}
<form method="POST" action="details"> <form method="POST">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
......
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