From c330e06d4e9649ad56bad0912bcd8828077bf7ef Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Sun, 7 Aug 2022 17:24:33 -0400 Subject: [PATCH] Use abstract ModelWithCreatedUpdatedFields for Note model this adds the fields `created_at`, `created_by`, `updated_at` and `updated_by` --- program/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/models.py b/program/models.py index a6c7a96f..3fe323b6 100644 --- a/program/models.py +++ b/program/models.py @@ -1158,7 +1158,7 @@ class TimeSlot(models.Model): return str("".join(s for s in string if s.isdigit())) -class Note(ModelWithImageFields): +class Note(ModelWithImageFields, ModelWithCreatedUpdatedFields): timeslot = models.OneToOneField(TimeSlot, on_delete=models.CASCADE, unique=True) contributors = models.ManyToManyField(Host, related_name="contributions") owner = models.ForeignKey( -- GitLab