From 0309a3875f0c4bcf5b6c6b26077c79635f564bbf Mon Sep 17 00:00:00 2001 From: Benno Date: Wed, 8 Jan 2025 20:51:00 +0100 Subject: [PATCH] Last fix, let's hope. --- spybot/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spybot/models.py b/spybot/models.py index 09765f9..e01d12a 100644 --- a/spybot/models.py +++ b/spybot/models.py @@ -131,7 +131,7 @@ def last_login_time(self): class TSID(DebuggableModel): - tsuser = models.ForeignKey(TSUser, models.DO_NOTHING, db_column='tsUserID', blank=True, null=True) + tsuser = models.ForeignKey(TSUser, models.DO_NOTHING, db_column='tsuserid', blank=True, null=True) ts_id = models.CharField(db_column='tsID', max_length=32, primary_key=True) class Meta: @@ -141,7 +141,7 @@ class Meta: class TSUserActivity(DebuggableModel): id = models.IntegerField(primary_key=True, null=False) - tsuser = models.ForeignKey(TSUser, models.DO_NOTHING, db_column='tsUserID', blank=True, null=True) # Field name made lowercase. + tsuser = models.ForeignKey(TSUser, models.DO_NOTHING, db_column='tsuserid', blank=True, null=True) # Field name made lowercase. start_time = models.DateTimeField(db_column='startTime', blank=True, null=True) # Field name made lowercase. end_time = models.DateTimeField(db_column='endTime', blank=True, null=True) # Field name made lowercase. joined = models.BooleanField(null=False, default=False)