Fix created_at using auto_created instead of auto_now_add

This commit is contained in:
2024-12-18 23:37:01 +01:00
parent db810d907d
commit 5efa9ff3da
2 changed files with 26 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class Game(auto_prefetch.Model):
# Django fields
# "155409827"
twitch_id = models.TextField(primary_key=True, help_text="The Twitch ID of the game.")
created_at = models.DateTimeField(auto_created=True, help_text="When the game was first added to the database.")
created_at = models.DateTimeField(auto_now_add=True, help_text="When the game was first added to the database.")
modified_at = models.DateTimeField(auto_now=True, help_text="When the game was last modified.")
# Twitch fields