froide_fax/views.py
def form_valid(self, form):
        """If the form is valid, redirect to the supplied URL."""
        sig = form.save()
        if sig:
            messages.add_message(
                self.request, messages.SUCCESS, _("Signature has been saved.")
            )
        else:
            messages.add_message(
                self.request, messages.SUCCESS, _("Signature has been removed.")
            )
        return super(UpdateSignatureView, self).form_valid(form)
If the form is valid, redirect to the supplied URL.
If the form is valid, redirect to the supplied URL.
If the form is valid redirect to the supplied URL .
def form_valid(self, form):
        sig = form.save()
        if sig:
            messages.add_message(
                self.request, messages.SUCCESS, _("Signature has been saved.")
            )
        else:
            messages.add_message(
                self.request, messages.SUCCESS, _("Signature has been removed.")
            )
        return super(UpdateSignatureView, self).form_valid(form)
def form_valid ( self , form ) : sig = form . save ( ) if sig : messages . add_message ( self . request , messages . SUCCESS , _ ( "Signature has been saved." ) ) else : messages . add_message ( self . request , messages . SUCCESS , _ ( "Signature has been removed." ) ) return super ( UpdateSignatureView , self ) . form_valid ( form )
If the form is valid, redirect to the supplied URL.
If the form is valid redirect to the supplied URL .
"""If the form is valid, redirect to the supplied URL."""
self
form