Skip to content

Commit

Permalink
Merge pull request #86 from UnitapApp/develop
Browse files Browse the repository at this point in the history
replace createdat with age in tokentapclaim admin
  • Loading branch information
Inspector-Butters authored Jul 19, 2023
2 parents 5b0c516 + fc0c14a commit bc0e0af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tokenTap/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TokenDistributionClaimAdmin(admin.ModelAdmin):
"token_distribution",
"status",
"user_profile",
"created_at",
"age",
]
list_filter = ["token_distribution", "status"]

Expand Down
4 changes: 4 additions & 0 deletions tokenTap/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ def token(self):
@property
def amount(self):
return self.token_distribution.amount

@property
def age(self):
return timezone.now() - self.created_at

0 comments on commit bc0e0af

Please sign in to comment.