From 1b3cbd325bf63a49202804e38655d09be6ba3894 Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Fri, 9 Aug 2024 12:39:28 -0700 Subject: [PATCH] fix stats page user count --- bots/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bots/models.py b/bots/models.py index 8c7c58e56..6ea64e773 100644 --- a/bots/models.py +++ b/bots/models.py @@ -1096,7 +1096,6 @@ class Conversation(models.Model): "web_user_id", "wa_phone_number", "twilio_phone_number", - "id", ] class Meta: @@ -1135,10 +1134,9 @@ def get_display_name(self): def unique_user_id(self) -> str | None: for col in self.user_id_fields: - if col == "id": - return self.api_integration_id() if value := getattr(self, col, None): return value + return self.api_integration_id() get_display_name.short_description = "User"