Code

Changes between Version 4 and Version 5 of CookBookManipulatorCustomManipulator


Ignore:
Timestamp:
03/01/06 09:58:30 (8 years ago)
Author:
brant
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookManipulatorCustomManipulator

    v4 v5  
    6767         return render_to_response('polls/edit_form', {'form': form}) 
    6868    else: 
    69          return HttpResponseRedirect("/polls/" % poll.id) 
     69         return HttpResponseRedirect("/polls/%d" % poll.id) 
    7070}}} 
    7171 
     
    9494    result = manipulator.process(request) 
    9595    if (manipulator.done): #Are we done processing? 
    96          return HttpResponseRedirect("/polls/" % result.id) 
     96         return HttpResponseRedirect("/polls/%d" % result.id) 
    9797    else: #Otherwise, place the form. 
    9898         return render_to_response('polls/new_form', {'form': manipulator.form}) 
    9999}}} 
    100  
    101  
    102 I think you forgot to put %s after /polls/ in the HttpResponseRedirect line. e.g ("/polls/%s" % result.id) - Peter