

def form_invalid(self, form):
    data = {
        'html': render_to_string('teams/_invite_form.html', {
            'invite_form': form,
            'team': self.team,
        }, context_instance=RequestContext(self.request)),
    }
    return self.render_to_response(data)

dataset/ETHPy150Open pinax/pinax-teams/pinax/teams/views.py TeamInviteView.form_invalid/original