Skip to content

Commit 9d244ed

Browse files
authored
Merge pull request #509 from ChillarAnand/comments
Sort comments by created date
2 parents 15ca79c + 4f72923 commit 9d244ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

junction/proposals/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ class ProposalComment(TimeAuditModel):
292292
choices=ProposalCommentType.CHOICES, default=ProposalCommentType.GENERAL)
293293
objects = ProposalCommentQuerySet.as_manager()
294294

295+
class Meta:
296+
ordering = ('created_at', )
297+
295298
def __str__(self):
296299
return "[{} by {}] {}".format(self.comment,
297300
self.commenter.get_full_name(),

0 commit comments

Comments
 (0)