def edit_ajax(request): """ This is the "hijaxed" request, to show an edit form for an item. """ edit_template = Edit() edit_template.set_item('Joe') return http.HttpResponse(edit_template.render())
def edit(request): """ This is a "default" request, to show an edit form for an item. """ outline_template = Outline() edit_template = Edit() edit_template.set_item('Joe') outline_template.set_body(edit_template) return http.HttpResponse(outline_template.render())