Fix bugs:
* Can't create categories and tags * Recursively create directories
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form action="/category/add" method="post">{% csrf_token %}
|
||||
<form action="/category/add/{{ blog.id }}" method="post">{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" name="add" value="Add" />
|
||||
<input type="submit" name="cancel" value="Cancel" />
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
<li><a href="/category/add">Add a category</a></li>
|
||||
<li><a href="/category/add/{{ blog.id }}">Add a category</a></li>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user