同步数据库

This commit is contained in:
曹前明 2022-06-29 13:26:50 +08:00
parent 4c2c0db577
commit f6609cd387
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 3.0.5 on 2022-06-29 05:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('system', '0021_auto_20220530_1520'),
('ability', '0036_auto_20220607_1445'),
]
operations = [
migrations.AddField(
model_name='qtask',
name='orgs',
field=models.ManyToManyField(through='ability.QOrg', to='system.Organization'),
),
]

View File

@ -176,6 +176,7 @@ class QTask(CommonBModel):
name = models.CharField('名称', max_length=100)
end_date = models.DateField('截止时间', null=True, blank=True)
state = models.CharField('任务状态', max_length=50, choices=state_choices, default='待发布')
orgs = models.ManyToManyField(Organization, through='ability.qorg')
class Meta:
verbose_name = '资质报送任务'
verbose_name_plural = verbose_name