examtest default ispublic=1
This commit is contained in:
parent
c73d8c9e15
commit
902d2de37e
|
@ -743,7 +743,7 @@ class ExamTest(models.Model): # 考试表
|
|||
name = models.CharField(max_length=200, default='')
|
||||
type = models.IntegerField(default=1) # 试卷库考试/自动抽题考试
|
||||
state = models.IntegerField(default=1) # 1进行中 0是已关闭
|
||||
ispublic = models.IntegerField(default=0) # 默认不公开
|
||||
ispublic = models.IntegerField(default=1) # 默认公开
|
||||
exampaper = models.ForeignKey(ExamPaper, on_delete=models.CASCADE)
|
||||
user = models.ManyToManyField(User, through='ExamTestDetail') # 考试人员
|
||||
starttime = models.DateTimeField(null=True, blank=True) # 最早参加
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<div style="margin-bottom:5px;">
|
||||
<label>是否公开</label>
|
||||
<input id="ispublicbutton" class="easyui-switchbutton" data-options="onText:'公开',offText:'不公开'" style="width: 80px;">
|
||||
<input id="ispublic" name="ispublic" val="yes" type="hidden"></input>
|
||||
<input id="ispublic" name="ispublic" value="yes" type="hidden"></input>
|
||||
</div>
|
||||
<div style="margin-bottom:5px" id="choosediv">
|
||||
<input class="easyui-textbox" id="participantname" style="width:500px;height:120px" editable="false"
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<div style="margin-bottom:5px;">
|
||||
<label>是否公开</label>
|
||||
<input id="ispublicbutton" class="easyui-switchbutton" data-options="onText:'公开',offText:'不公开'" style="width: 80px;">
|
||||
<input id="ispublic" name="ispublic" val="yes" type="hidden"></input>
|
||||
<input id="ispublic" name="ispublic" value="yes" type="hidden"></input>
|
||||
</div>
|
||||
<div style="margin-bottom:5px" id="choosediv">
|
||||
<input class="easyui-textbox" id="participantname" style="width:500px;height:120px" editable="false"
|
||||
|
|
Loading…
Reference in New Issue