blob: fc4af583239c4fd8571837f882595fb115513018 [file] [log] [blame]
from django.core.files.storage import FileSystemStorage
from django.db import models
class TestRun(models.Model):
project_name = models.CharField(max_length=300)
plan_name = models.CharField(max_length=300)
run_name = models.CharField(max_length=300)
created_by = models.CharField(max_length=300, default="")
filter_func = models.TextField(null=True, blank=True)
ip_filter = models.BooleanField(default=False)
uuid_filter = models.BooleanField(default=False)
filter_last_traceback = models.BooleanField(default=False)
fs = FileSystemStorage()
class Report(models.Model):
path = models.FileField(storage=fs, null=True, blank=True)
test_run = models.ForeignKey(TestRun, on_delete=models.CASCADE)
report_name = models.CharField(max_length=300)
finished = models.BooleanField(default=False)
created_at = models.DateTimeField(auto_now_add=True)