Skip to content

Commit

Permalink
default db.auth_user._format and auto IS_IN_DB.options()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed May 30, 2024
1 parent 4bc0cbc commit 5db1bd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion py4web/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ def define_tables(self):
readable=False,
)
)
db.define_table("auth_user", *(auth_fields + self.extra_auth_user_fields))
db.define_table(
"auth_user",
*(auth_fields + self.extra_auth_user_fields),
format=lambda u: f"{u.first_name} {u.last_name}")

@property
def signature(self):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pycryptodome
pluralize >= 20240515.1
rocket3 >= 20230507.1
yatl >= 20230507.3
pydal >= 20240428.2
pydal >= 20240529.1
watchgod >= 0.6

# optional modules:
Expand Down

0 comments on commit 5db1bd2

Please sign in to comment.