测试功夫不负有心人

Posted Jesson

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了测试功夫不负有心人相关的知识,希望对你有一定的参考价值。

功夫不负有心人

Python代码

from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Customer(models.Model):
    ‘‘‘客户信息表‘‘‘
    name = models.CharField(max_length=32,blank=True,null=True)
    qq = models.CharField(max_length=64,unique=True)
    qq_name = models.CharField(max_length=64,blank=True,null=True)
    phone = models.CharField(max_length=64,blank=True,null=True)
    source_choices = ((0,‘转介绍‘),
                      (1,‘QQ群‘),
                      (2,‘官网‘),
                      (3,‘百度推广‘),
                      (4,‘51CTO‘),
                      (5,‘知乎‘),
                      (6,‘市场推广‘)
                      )

    source = models.SmallIntegerField(verbose_name="报名渠道",choices=source_choices)
    referral_from = models.CharField(verbose_name="转介绍人qq",max_length=64,blank=True,null=True)

    consult_course = models.ForeignKey("Course",verbose_name="咨询课程")
    content = models.TextField(verbose_name="咨询详情")
    tags = models.ManyToManyField("Tag",blank=True,null=True)
    consultant = models.ForeignKey("UserProfile")
    memo = models.TextField(blank=True,null=True)
    date = models.DateTimeField(auto_now_add=True)
    status_choices = ((0,‘已报名‘),
                      (1,‘未报名‘),)
    status = models.SmallIntegerField(verbose_name="报名状态",choices=status_choices,default=1)
    def __str__(self):
        return self.qq

    class Meta:
        verbose_name = "客户表"
        verbose_name_plural = ‘客户信息表‘

js代码

 

以上是关于测试功夫不负有心人的主要内容,如果未能解决你的问题,请参考以下文章

CTS测试CtsWindowManagerDeviceTestCases模块的testShowWhenLockedImeActivityAndShowSoftInput测试fail项解决方法(代码片段

;~ 小部分AutoHotkey源代码片段测试模板2019年10月9日.ahk

typescript Angular 2测试片段。代码库https://developers.livechatinc.com/blog/category/programming/angular-2/

如何在片段着色器中进行自定义模板测试

typescript Angular最终版本的Angular 2测试片段。代码库https://developers.livechatinc.com/blog/category/programming

typescript Angular最终版本的Angular 2测试片段。代码库https://developers.livechatinc.com/blog/category/programming