本文整理汇总了Python中eventex.subscriptions.forms.SubscriptionForm类的典型用法代码示例。如果您正苦于以下问题:Python SubscriptionForm类的具体用法?Python SubscriptionForm怎么用?Python SubscriptionForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SubscriptionForm类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: make_validated_form
def make_validated_form(self, **kwargs):
data = dict(name='Alexsander Falcucci', email='[email protected]',
cpf='12345678901', phone_0='21', phone_1='96186180')
data.update(kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例2: make_validated_form
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
示例3: create
def create(request):
form = SubscriptionForm(request.POST)
if not form.is_valid():
return render(request, 'subscriptions/subscription_form.html',
{'form': form})
obj = form.save()
return HttpResponseRedirect('/inscricao/%d/' % obj.pk)
示例4: make_validated_form
def make_validated_form(self, **kwargs):
valid = dict(name='John Doe', cpf='12345678900',
email='[email protected]', phone='2345678')
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例5: make_validated_form
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
示例6: make_validated_form
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
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
示例8: make_validated_form
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
示例9: make_validated_form
def make_validated_form(self, **kwargs):
valid = dict(name='Manaia Junior', cpf='12345678901',
email='[email protected]', phone='84-988929399')
data = dict(valid, **kwargs)
form = SubscriptionForm(data)
form.is_valid()
return form
示例10: make_validated_form
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
示例11: create
def create(request):
form = SubscriptionForm(request.POST)
if not form.is_valid():
return render(request, 'subscriptions/inscricao.html', {'form': form})
obj = form.save()
return HttpResponseRedirect(r('subscriptions:detail', args=[obj.pk]))
示例12: make_validated_forms
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
示例13: make_validated_form
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
示例14: make_validated_form
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
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