def invite_form(self): is_bound = self.request.method == 'POST' and self.request.POST.get( 'form') == 'invite' return TeamInviteForm(self.request.POST if is_bound else None)
def invite_form(self): is_bound = (self.request.method == "POST" and self.request.POST.get("form") == "invite") return TeamInviteForm(self.request.POST if is_bound else None)