Simplify user logging - always use name field
- Remove UUID fallback since name is always present - Clean up conditional logic - User name is a required field in the model
This commit is contained in:
parent
557733890f
commit
7574c09910
1 changed files with 2 additions and 7 deletions
|
|
@ -559,13 +559,8 @@ class CryptoPayment(RBase, Base):
|
|||
|
||||
# Get user display name if available
|
||||
user_display = ""
|
||||
if self.user:
|
||||
if hasattr(self.user, "name") and self.user.name:
|
||||
user_display = f" user:{self.user.name}"
|
||||
else:
|
||||
user_display = f" user:id-{self.user.uuid_str[:8]}"
|
||||
elif self.user_id:
|
||||
user_display = f" user:id-{self.user_id.hex[:8]}"
|
||||
if self.user and hasattr(self.user, "name"):
|
||||
user_display = f" user:{self.user.name}"
|
||||
|
||||
# Get shop name if available
|
||||
shop_display = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue