This commit is contained in:
Egor Matveev
2022-01-20 00:48:23 +03:00
parent 39a61ba1d6
commit a09ec5234a
10 changed files with 94 additions and 0 deletions

View File

@@ -13,6 +13,11 @@ class ExtraFile(FileStorageMixin, models.Model):
test_number = models.IntegerField(null=True)
fs_id = models.IntegerField(null=True)
class Meta:
indexes = [
models.Index(fields=['task'])
]
@property
def can_be_sample(self):
return (