def get_form_valid_message(self):
        if self.form_valid_message is None:
            raise ImproperlyConfigured(
                '{0}.form_valid_message is not set. Define '
                '{0}.form_valid_message, or override '
                '{0}.get_form_valid_message().'.format(self.__class__.__name__)
            )

        if not isinstance(self.form_valid_message,
                          (six.string_types, six.text_type, Promise)):
            raise ImproperlyConfigured(
                '{0}.form_valid_message must be a str or unicode '
                'object.'.format(self.__class__.__name__)
            )

        return force_text(self.form_valid_message)
Generate PaStreamParameters struct.
dataset/ETHPy150Open brack3t/django-braces/braces/views/_forms.py/FormValidMessageMixin.get_form_valid_message--crossover with--dataset/ETHPy150Open bastibe/PySoundCard/pysoundcard.py/_get_stream_parameters