Fix bugs:

* Can't create categories and tags
	* Recursively create directories
This commit is contained in:
Gregory Soutade
2014-11-13 19:25:02 +01:00
parent 7aa99e0cbe
commit 62ed52d797
8 changed files with 48 additions and 15 deletions

View File

@@ -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" />

View File

@@ -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 %}