本文整理汇总了Python中eventex.subscriptions.forms.SubscriptionForm.is_valid方法的典型用法代码示例。如果您正苦于以下问题:Python SubscriptionForm.is_valid方法的具体用法?Python SubscriptionForm.is_valid怎么用?Python SubscriptionForm.is_valid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eventex.subscriptions.forms.SubscriptionForm
的用法示例。
在下文中一共展示了SubscriptionForm.is_valid方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
valid = dict(name='Hiarison Gigante', cpf='12345678901',
email='[email protected]', phone='+55 21 9900 9900')
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例2: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Henrique Bastos', email='[email protected]', cpf='12345678901', phone='21-96186180')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例3: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self,**kwargs):
valid = dict(name='Gabriel Pedorso', cpf='12345678910',
email='[email protected]', phone='11-111111111')
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例4: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Darlene Medeiros', email='[email protected]',
cpf='12345678901', phone_0='21', phone_1='91911919')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例5: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
valid = dict(name='Matheus Fernandes', cpf='12345678901',
email="[email protected]", phone="14-996055972")
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例6: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Dyego Cantu', email='[email protected]', \
cpf='12345678901', phone_0='21', phone_1='96186180')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例7: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
valid = dict(name='Jasiel Serra', cpf='12345678901',
email='[email protected]', phone='75-9915787887')
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例8: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Felipe Scampini', email='[email protected]', cpf='12345678901'
, phone_0='21', phone_1='81066625')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例9: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
valid = dict(name='lucas farias', email='[email protected]',
cpf='12345678901', phone='71-991625771')
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例10: make_validated_forms
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_forms(self, **kwargs):
data = dict(name='Dyesten Paulon', email='[email protected]', cpf='11144477735', phone_0='31', phone_1='88994477')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例11: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Fernando Chimi', email='[email protected]',
cpf='40090038800', phone_0='16', phone_1='91515651')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例12: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Victor Hugo Novais', email='[email protected]',
cpf='12345678910', phone='21-9999-9999')
data.update(**kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例13: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Diego Tolentino', email='[email protected]',
cpf='12345678901', phone='62-39201997')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例14: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
data = dict(name='Fellipe Pinheiro', email='[email protected]',
cpf='12345678901', phone_0='21', phone_1='12345678')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例15: make_validated_form
# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
def make_validated_form(self, **kwargs):
valid = dict(name='Lucas Rangel Cezimbra', cpf='12345678901',
email='[email protected]', phone='(51)82100596')
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form