editors
This commit is contained in:
parent
90d3316ab6
commit
652b18df88
@ -26,7 +26,7 @@ class Task(models.Model):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def tests(self):
|
def tests(self):
|
||||||
return ExtraFile.objects.filter(task=self, is_test=True)
|
return ExtraFile.objects.filter(task=self, is_test=True).order_by('filename')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def samples(self):
|
def samples(self):
|
||||||
|
@ -251,7 +251,7 @@
|
|||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i> Закрыть</button>
|
<button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i> Закрыть</button>
|
||||||
<button type="submit" class="btn btn-success"><i class="fa fa-file"></i> Создать</button>
|
<button type="submit" class="btn btn-success"><i class="fa fa-file"></i> Создать</button>
|
||||||
<input id="action_create" type="hidden" name="action" value="">
|
<input id="action_create" type="hidden" name="action" value="create_test">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user