Skip to content
Snippets Groups Projects
Commit 95574033 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add created_{at,by}, updated_{at,by} to Profile model.

parent 75e237b0
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,11 @@ class Profile(models.Model): ...@@ -28,6 +28,11 @@ class Profile(models.Model):
) )
cba_username = models.CharField(_("CBA Username"), blank=True, max_length=60) cba_username = models.CharField(_("CBA Username"), blank=True, max_length=60)
cba_user_token = models.CharField(_("CBA Token"), blank=True, max_length=255) 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): def __str__(self):
return self.user.username return self.user.username
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment