首页 > Web开发 > 详细

highlight.js 测试

时间:2017-01-06 21:57:46      阅读:225      评论:0      收藏:0      [点我收藏+]

测试

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(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(choices=status_choices,default=1)
def __str__(self):
return self.qq

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

highlight.js 测试

原文:http://www.cnblogs.com/hellojesson/p/6257083.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!