# HG changeset patch # User neko259 # Date 2013-03-23 18:37:49 # Node ID 5fb6f373d48c6466edcf793f077a4c5a82481dad # Parent 7234fa2309d50a9f6bf7cab4418581c0a608d436 Changed the url to the post page. Added one more TODO. diff --git a/boards/urls.py b/boards/urls.py --- a/boards/urls.py +++ b/boards/urls.py @@ -9,6 +9,6 @@ urlpatterns = patterns('', # /boards/post_id/ url(r'^(?P\w+)/$', views.thread, name = 'thread'), # /boards/tag/post/ - url(r'^(?P\w+)/post.html$', views.new_post, + url(r'^post.html$', views.new_post, name='post'), ) diff --git a/boards/views.py b/boards/views.py --- a/boards/views.py +++ b/boards/views.py @@ -16,6 +16,8 @@ def new_post(request): image = request.POST['image'] + # TODO Get tags list, download image (if link is given) + post = Post.objects.create_post(title = title, text = text, image = image) # TODO Show the thread with a newly created post