feat(apps):introduce user management CRUD and ticket delete functionality, improve context data and ordering

This commit is contained in:
sankalp committed 2026-05-28 00:00:16 +05:45
1 parent 5bffdcfc1d
commit 7c6c3c83ce
17 files changed
+237 -27

No files matched your search

+6
View File
@@ -37,6 +37,9 @@ class Issue(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
ordering = ["-created_at"]
def __str__(self):
return self.title
@@ -47,5 +50,8 @@ class IssueComment(models.Model):
body = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ["created_at"]
def __str__(self):
return f"Comment by {self.author} on {self.issue}"