当前位置: 首页>>代码示例>>Python>>正文


Python forms.SubscriptionForm类代码示例

本文整理汇总了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
开发者ID:alexfalcucc,项目名称:eventex-wttd-alexfalcucci,代码行数:7,代码来源:test_forms.py

示例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
开发者ID:Lrcezimbra,项目名称:wttd-eventex,代码行数:7,代码来源:test_form_subscription.py

示例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)
开发者ID:Bigua,项目名称:Eventex,代码行数:7,代码来源:views.py

示例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
开发者ID:sembug,项目名称:wttd-eventex,代码行数:7,代码来源:test_form_subscription.py

示例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
开发者ID:nassif,项目名称:eventex,代码行数:7,代码来源:test_forms.py

示例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
开发者ID:dyegocantu,项目名称:eventex-old,代码行数:7,代码来源:test_forms.py

示例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
开发者ID:fernandochimi,项目名称:wttd,代码行数:7,代码来源:test_forms.py

示例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
开发者ID:lffsantos,项目名称:eventex,代码行数:7,代码来源:test_form_subscription.py

示例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
开发者ID:mjr,项目名称:eventex,代码行数:7,代码来源:test_form_subscription.py

示例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
开发者ID:jasielserra,项目名称:eventex,代码行数:7,代码来源:test_form_subscription.py

示例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]))
开发者ID:eduardo-matos,项目名称:wttd,代码行数:7,代码来源:views.py

示例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
开发者ID:dyesten,项目名称:wttd,代码行数:7,代码来源:tests_forms.py

示例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
开发者ID:nicolasteodosio,项目名称:wttd-1,代码行数:7,代码来源:test_forms.py

示例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
开发者ID:delete,项目名称:wttd,代码行数:7,代码来源:test_forms.py

示例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
开发者ID:diegotolentino,项目名称:eventex,代码行数:7,代码来源:test_forms.py


注:本文中的eventex.subscriptions.forms.SubscriptionForm类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。