This commit is contained in:
Bob 2020-09-29 09:49:28 +08:00
parent 91339e20ea
commit 7f776a7ce6
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,11 @@ class Group_type(models.Model):
class Group(models.Model):
GROUP_CLASSIFY_CHOICES = (
('0', '区域'),
('1', '媒体种类'),
('2', '行业'),
)
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
name = models.CharField('矩阵名称', max_length=256, null=True, blank=True)
presentation = models.TextField('矩阵描述', null=True, blank=True)
@ -39,6 +44,7 @@ class Group(models.Model):
district = models.CharField('', max_length=256, null=True, blank=True)
town = models.CharField('', max_length=256, null=True, blank=True)
village = models.CharField('', max_length=256, null=True, blank=True)
classify = models.CharField('分类',max_length=256,null=True,blank=True,choices=GROUP_CLASSIFY_CHOICES)
user = models.ForeignKey(
User, on_delete=models.CASCADE, blank=True, null=True)