Before: > def flash_success(request, body, title=''): > request.session.flash({'body': body, 'title': title'})
After: > def flash_success(self, body, title=''): > self.session.flash({'body': body, 'title': title'})
Before: > def flash_success(request, body, title=''): > request.session.flash({'body': body, 'title': title'})
After: > def flash_success(self, body, title=''): > self.session.flash({'body': body, 'title': title'})