From 87d1bcb04f557db5f55b06c7e79cc12eebe9c78d Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 13 Oct 2023 11:53:52 +0800 Subject: [PATCH] Fixed study group timestamp field --- stude/study_groups/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stude/study_groups/models.py b/stude/study_groups/models.py index 9cfcb20..f117f65 100644 --- a/stude/study_groups/models.py +++ b/stude/study_groups/models.py @@ -9,7 +9,7 @@ class StudyGroup(models.Model): name = models.CharField(max_length=48, unique=True) location = gis_models.PointField(blank=True, null=True, srid=4326) subject = models.ForeignKey(Subject, on_delete=models.CASCADE) - timestamp = models.DateField(auto_now_add=True) + timestamp = models.DateTimeField(auto_now_add=True) landmark = models.ForeignKey( 'landmarks.Landmark', on_delete=models.SET_NULL, null=True)