diff --git a/apiserver/apiserver/api/models.py b/apiserver/apiserver/api/models.py index a6e0c26..6054910 100644 --- a/apiserver/apiserver/api/models.py +++ b/apiserver/apiserver/api/models.py @@ -25,7 +25,7 @@ class Transaction(models.Model): recorder = models.ForeignKey(User, related_name='+', blank=True, null=True, on_delete=models.PROTECT) member_id = models.IntegerField(blank=True, null=True) - date = models.DateTimeField(default=now) + date = models.DateField(default=date.today) amount = models.DecimalField(max_digits=7, decimal_places=2) reference_number = models.CharField(max_length=32, blank=True, null=True) memo = models.TextField(blank=True, null=True) diff --git a/webclient/src/App.js b/webclient/src/App.js index 864f9de..16c4f87 100644 --- a/webclient/src/App.js +++ b/webclient/src/App.js @@ -239,54 +239,71 @@ function MemberInfo(props) { const user = props.user; const member = user.member; + const lastTrans = user.transactions.slice(-3); + return (
Preferred Name: {member.preferred_name || '???'}
-Email: {user.email}
-Preferred Name: {member.preferred_name || '???'}
+Email: {user.email}
+Status: Current