#!/usr/bin/env python
# encoding:utf-8
# @Author  :may
from django import forms


class BaseForm(forms.Form):
    def errors_to_string(self):
        json_msg = ':'.join(self.errors.as_text().split('\n'))
        return json_msg

5de5508aff3919e2d09e639f317df76d8e73ce7a
<mask token>

<mask token>


class BaseForm(forms.Form):
    <mask token>

<mask token>


class BaseForm(forms.Form):

    def errors_to_string(self):
        json_msg = ':'.join(self.errors.as_text().split('\n'))
        return json_msg

from django import forms


class BaseForm(forms.Form):

    def errors_to_string(self):
        json_msg = ':'.join(self.errors.as_text().split('\n'))
        return json_msg

#!/usr/bin/env python
# encoding:utf-8
# @Author  :may
from django import forms


class BaseForm(forms.Form):
    def errors_to_string(self):
        json_msg = ':'.join(self.errors.as_text().split('\n'))
        return json_msg
