From 95574033f3a79e2604c7d5a71b8c5408d71eb541 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Thu, 28 Jul 2022 12:09:29 -0400
Subject: [PATCH] Add created_{at,by}, updated_{at,by} to Profile model.

---
 profile/models.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/profile/models.py b/profile/models.py
index 74363922..a33391cc 100644
--- a/profile/models.py
+++ b/profile/models.py
@@ -28,6 +28,11 @@ class Profile(models.Model):
     )
     cba_username = models.CharField(_("CBA Username"), blank=True, max_length=60)
     cba_user_token = models.CharField(_("CBA Token"), blank=True, max_length=255)
+    # FIXME: these fields should be from an abstract model
+    created_at = models.DateTimeField(auto_now_add=True)
+    created_by = models.CharField(max_length=150)
+    updated_at = models.DateTimeField(auto_now=True)
+    updated_by = models.CharField(max_length=150)
 
     def __str__(self):
         return self.user.username
-- 
GitLab