Changes between Version 4 and Version 5 of CookBookManipulatorCustomManipulator
- Timestamp:
- Mar 1, 2006, 11:58:30 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookManipulatorCustomManipulator
v4 v5 67 67 return render_to_response('polls/edit_form', {'form': form}) 68 68 else: 69 return HttpResponseRedirect("/polls/ " % poll.id)69 return HttpResponseRedirect("/polls/%d" % poll.id) 70 70 }}} 71 71 … … 94 94 result = manipulator.process(request) 95 95 if (manipulator.done): #Are we done processing? 96 return HttpResponseRedirect("/polls/ " % result.id)96 return HttpResponseRedirect("/polls/%d" % result.id) 97 97 else: #Otherwise, place the form. 98 98 return render_to_response('polls/new_form', {'form': manipulator.form}) 99 99 }}} 100 101 102 I think you forgot to put %s after /polls/ in the HttpResponseRedirect line. e.g ("/polls/%s" % result.id) - Peter