Mercurial > public > sg101
diff gpp/shoutbox/views.py @ 151:e1d1a70d312d
Implement #43, various shoutbox improvements.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 18 Dec 2009 04:30:49 +0000 |
parents | a20b2c492d55 |
children | 7ddd60164245 |
line wrap: on
line diff
--- a/gpp/shoutbox/views.py Thu Dec 17 04:14:16 2009 +0000 +++ b/gpp/shoutbox/views.py Fri Dec 18 04:30:49 2009 +0000 @@ -10,6 +10,7 @@ from django.http import HttpResponseBadRequest from django.http import HttpResponseForbidden from django.http import HttpResponseRedirect +from django.http import Http404 from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST @@ -100,10 +101,7 @@ return HttpResponseBadRequest() shout.shout = new_shout shout.save() - return render_to_response('shoutbox/render_shout.html', { - 'shout': shout, - }, - context_instance = RequestContext(request)) + return HttpResponse(shout.html) return HttpResponseForbidden()