Skip to content

Commit

Permalink
fix column formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Feb 25, 2024
1 parent 95fa3c6 commit 5345bc7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spkrepo/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ def is_accessible(self):
# View
column_list = ("username", "email", "roles", "active", "confirmed_at")

column_formatters = {
"confirmed_at": lambda v, c, m, p: (
m.confirmed_at.strftime("%Y-%m-%d %H:%M:%S") if m.confirmed_at else None
)
}

# Form
form_columns = ("username", "roles", "active")
form_overrides = {"password": PasswordField}
Expand Down

0 comments on commit 5345bc7

Please sign in to comment.