feat(apps):introduce user management CRUD and ticket delete functionality, improve context data and ordering
This commit is contained in:
17 files changed
+237
-27
No files matched your search
@@ -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}"
|
||||
Reference in new issue
Block a user