Changes between Version 4 and Version 5 of CookBookManipulatorCustomManipulator


Ignore:
Timestamp:
Mar 1, 2006, 11:58:30 AM (18 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
Back to Top