From 4e3635d1febdd405d1ff57d95c40a26952cfe8af Mon Sep 17 00:00:00 2001 From: eeintech Date: Tue, 27 Jul 2021 10:05:22 -0400 Subject: [PATCH] Exact query on ID made the PostGreSQL DB choke --- InvenTree/common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index b97bb539e3..ec755aad58 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -890,7 +890,7 @@ class InvenTreeUserSetting(BaseInvenTreeSetting): @classmethod def get_filters(cls, key, **kwargs): - return {'key__iexact': key, 'user__id__iexact': kwargs['user'].id} + return {'key__iexact': key, 'user__id': kwargs['user'].id} class PriceBreak(models.Model):