Add fields to track member creation and edit datetimes (#48)

* Add created and updated fields.
This commit is contained in:
Drew Larson
2017-05-17 22:06:59 -06:00
committed by GitHub
parent 32416d6b8f
commit 3ddaed0041
3 changed files with 32 additions and 3 deletions
+2
View File
@@ -96,6 +96,8 @@ class Member(models.Model):
notes = models.TextField(null=True, blank=True)
suspended = models.BooleanField(default=False)
banned = models.BooleanField(default=False)
created_at = models.DateTimeField(auto_now_add=True)
modified_at = models.DateTimeField(auto_now=True)
def get_full_name(self):
# The user is identified by their email address