新建培训计划表
This commit is contained in:
parent
525dd98ef7
commit
5a63e0b4d4
|
@ -1,5 +1,6 @@
|
|||
from django.db import models
|
||||
import uuid
|
||||
from django.db.models import manager
|
||||
import django.utils.timezone as timezone
|
||||
from django.contrib.postgres.fields import JSONField, ArrayField
|
||||
import jwt
|
||||
|
@ -785,6 +786,19 @@ class ExamTestDetail(models.Model): # 考试详情表
|
|||
tms = models.TextField(default=',')
|
||||
wrongs = models.TextField(default=',')
|
||||
|
||||
class TrainPlan(models.Model):
|
||||
"""
|
||||
月度培训计划
|
||||
"""
|
||||
purpose = models.TextField('培训目的')
|
||||
year = models.IntegerField('年份', default=2021)
|
||||
month = models.IntegerField('月份', default=1)
|
||||
manager = models.ForeignKey(User, verbose_name="负责人")
|
||||
period = models.IntegerField('预计学时', default=0)
|
||||
group = models.ForeignKey(Group,)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.year)+'年'+str(self.month)+'月计划'
|
||||
|
||||
class Train(models.Model): # 培训表
|
||||
trainid = models.AutoField(primary_key=True)
|
||||
|
|
Loading…
Reference in New Issue