def newComic(handler): nextc=ComicForm(handler.request.POST).save(commit=False) nextc.text=nextc.text.replace('\n', '<br />') lastc=comic.Comic.get(handler.request.get('comickey')) nextc.last=lastc nextc.put() return nextc