From 26b0f99db0e597f8b85653b93d17d8cf999bd53a Mon Sep 17 00:00:00 2001 From: Jeremy Steele Date: Wed, 12 Jun 2024 16:34:52 -0400 Subject: [PATCH] Don't grab system fields for contact sort magic. --- engage/contacts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engage/contacts/views.py b/engage/contacts/views.py index 8148d2481..72e67fe06 100644 --- a/engage/contacts/views.py +++ b/engage/contacts/views.py @@ -51,7 +51,7 @@ def get_queryset(self: ContactCRUDL.List, **kwargs): if not self.sort_field in Contact._meta.get_fields(): # sort field is a ContactField whose `show_in_table` is True contact_field = ContactField.objects.filter( - is_active=True, org_id=org.id, key=self.sort_field + is_active=True, org_id=org.id, key=self.sort_field, is_system=False ).first() #endif else: