comparison gpp/forums/views.py @ 123:3ae999b0c53b

Forums: added a jquery ui dialog of extra smileys.
author Brian Neal <bgneal@gmail.com>
date Sun, 08 Nov 2009 21:15:31 +0000
parents b28d30848c57
children 152d77265da6
comparison
equal deleted inserted replaced
122:b28d30848c57 123:3ae999b0c53b
289 post.touch() 289 post.touch()
290 post.save() 290 post.save()
291 return HttpResponseRedirect(post.get_absolute_url()) 291 return HttpResponseRedirect(post.get_absolute_url())
292 else: 292 else:
293 form = PostForm(instance=post) 293 form = PostForm(instance=post)
294
295 post.user_profile = request.user.get_profile()
294 296
295 return render_to_response('forums/edit_post.html', { 297 return render_to_response('forums/edit_post.html', {
296 'forum': post.topic.forum, 298 'forum': post.topic.forum,
297 'topic': post.topic, 299 'topic': post.topic,
298 'post': post, 300 'post': post,