Beispiel #1
0
 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)
Beispiel #2
0
 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)