This commit is contained in:
parent
91339e20ea
commit
7f776a7ce6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue