Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Pithikos committed Sep 29, 2021
1 parent cb54238 commit 061fceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/cases/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ class CaseAssignmentSla(models.Model):
"""
Keeps track of days passed since case assigned to a team
"""

sla_days = models.IntegerField()
queue = models.ForeignKey(Queue, related_name="slas", on_delete=models.CASCADE)
case = models.ForeignKey(Case, related_name="slas", on_delete=models.CASCADE)
Expand All @@ -256,6 +257,7 @@ class DepartmentSla(models.Model):
"""
Keeps track of days passed since application received in department
"""

sla_days = models.IntegerField()
department = models.ForeignKey(Department, on_delete=models.CASCADE, related_name="department_slas")
case = models.ForeignKey(Case, on_delete=models.CASCADE, related_name="department_slas")
Expand Down
2 changes: 1 addition & 1 deletion api/cases/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Meta:


class DepartmentSlaFactory(factory.django.DjangoModelFactory):
sla_days = factory.Faker('pyint', min_value=0, max_value=30)
sla_days = factory.Faker("pyint", min_value=0, max_value=30)
case = factory.SubFactory(CaseFactory)
department = factory.SubFactory(DepartmentFactory)

Expand Down

0 comments on commit 061fceb

Please sign in to comment.