minor update

This commit is contained in:
2025-08-26 12:05:43 +05:30
parent 0d78cce3dd
commit adbfec2b10
27 changed files with 120 additions and 262 deletions
-16
View File
@@ -53,14 +53,6 @@ class Department(models.Model):
def __str__(self):
return self.name
class IssueCategory(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True)
icon = models.CharField(max_length=50, default='fas fa-exclamation-circle')
def __str__(self):
return self.name
class Issue(models.Model):
STATUS_REPORTED = 'reported'
STATUS_ACKNOWLEDGED = 'acknowledged'
@@ -77,14 +69,6 @@ class Issue(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
category = models.ForeignKey(
"IssueCategory",
on_delete=models.SET_NULL,
null=True,
blank=True,
related_name="issues"
)
reporter = models.ForeignKey(
settings.AUTH_USER_MODEL,
on_delete=models.CASCADE,