comment model fixed
This commit is contained in:
+1
-1
@@ -197,7 +197,7 @@ class Vote(models.Model):
|
||||
class Comment(models.Model):
|
||||
issue = models.ForeignKey(Issue, on_delete=models.CASCADE, related_name="comments")
|
||||
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||
content = models.TextField() # <--- field name is "content", not "text"
|
||||
content = models.TextField()
|
||||
parent = models.ForeignKey("self", null=True, blank=True, related_name="replies", on_delete=models.CASCADE)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user