fix: rpjlog缺少字段
This commit is contained in:
parent
a4c54c48e0
commit
7c08b2374f
|
@ -0,0 +1,26 @@
|
||||||
|
# Generated by Django 3.2.12 on 2023-03-23 09:45
|
||||||
|
|
||||||
|
from django.conf import settings
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||||
|
('rpm', '0008_auto_20230323_1740'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='rpjlog',
|
||||||
|
name='create_by',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='rpjlog_create_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='rpjlog',
|
||||||
|
name='update_by',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='rpjlog_update_by', to=settings.AUTH_USER_MODEL, verbose_name='最后编辑人'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -1,7 +1,7 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from apps.hrm.models import Certificate, Employee
|
from apps.hrm.models import Certificate, Employee
|
||||||
from apps.system.models import Dept, Dictionary, File, User
|
from apps.system.models import Dept, Dictionary, File, User
|
||||||
from apps.utils.models import CommonAModel, CommonBDModel, CommonBModel, BaseModel
|
from apps.utils.models import CommonAModel, CommonBDModel, CommonBModel, CommonADModel, BaseModel
|
||||||
from apps.wf.models import Ticket
|
from apps.wf.models import Ticket
|
||||||
|
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ class Rpjcertificate(BaseModel):
|
||||||
file = models.CharField('文件地址', max_length=1000, null=True, blank=True)
|
file = models.CharField('文件地址', max_length=1000, null=True, blank=True)
|
||||||
|
|
||||||
|
|
||||||
class RpjLog(BaseModel):
|
class RpjLog(CommonADModel):
|
||||||
"""项目变更日志
|
"""项目变更日志
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
Loading…
Reference in New Issue