From 95161a613c6fab12a0d7e9fa2654de55bc707f28 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 760def3a0..7829106e1 100644 --- a/bots/models.py +++ b/bots/models.py @@ -1094,7 +1094,6 @@ class Conversation(models.Model): "web_user_id", "wa_phone_number", "twilio_phone_number", - "id", ] class Meta: @@ -1133,10 +1132,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"