Skip to content

Commit

Permalink
auto-update the FileReview updated_at field
Browse files Browse the repository at this point in the history
  • Loading branch information
madwort committed Mar 20, 2024
1 parent cf0d505 commit 67b276c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local_db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class FileReview(models.Model):
reviewer = models.TextField()
status = EnumField(default=FileApprovalStatus.REJECTED, enum=FileApprovalStatus)
created_at = models.DateTimeField(default=timezone.now)
updated_at = models.DateTimeField(default=timezone.now)
updated_at = models.DateTimeField(auto_now=True)

class Meta:
unique_together = ("file", "reviewer")

0 comments on commit 67b276c

Please sign in to comment.