Changes between Version 30 and Version 31 of UsingFreeComment


Ignore:
Timestamp:
08/18/2008 08:51:28 PM (7 years ago)
Author:
Mark
Comment:

Updated for http://code.djangoproject.com/ticket/8092

Legend:

Unmodified
Added
Removed
Modified
  • UsingFreeComment

    v30 v31  
    247247
    248248def my_post_free_comment(request):
    249         if request.has_key('url') and not request.has_key('preview'):
     249        if request.REQUEST.has_key('url') and not request.REQUEST.has_key('preview'):
    250250                response = post_free_comment(request)
    251251               
    252252                # Check there's a url to redirect to, and that post_free_comment worked
    253                 if len(request['url'].strip()) > 0 and isinstance(response, HttpResponseRedirect):
    254                         return HttpResponseRedirect(request['url'])
     253                if len(request.REQUEST['url'].strip()) > 0 and isinstance(response, HttpResponseRedirect):
     254                        return HttpResponseRedirect(request.REQUEST['url'])
    255255               
    256256                # Fall back on the default post_free_comment response
Back to Top