Skip to content

Commit

Permalink
update tables to contain relevant info
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Oct 11, 2023
1 parent e142a8e commit 64d9f43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions commcare_connect/opportunity/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

class OpportunityAccessTable(tables.Table):
learn_progress = columns.Column(verbose_name="Modules Completed")
last_visit_date = columns.DateColumn(accessor="last_visit_date", default="N/A")
details = columns.LinkColumn(
"opportunity:user_learn_progress",
verbose_name="",
Expand All @@ -15,7 +14,7 @@ class OpportunityAccessTable(tables.Table):

class Meta:
model = OpportunityAccess
fields = ("user.username", "learn_progress", "visit_count")
fields = ("user.username", "learn_progress")
orderable = False
empty_text = "No learn progress for users."

Expand Down Expand Up @@ -52,7 +51,7 @@ class Meta:
class PaymentTable(tables.Table):
class Meta:
model = Payment
fields = ("user.username", "amount", "date_paid")
fields = ("opportunity_access.user.name", "opportunity_access.user.username", "amount", "date_paid")
orderable = False
empty_text = "No payments"

Expand Down

0 comments on commit 64d9f43

Please sign in to comment.