Merge pull request #1870 from eeintech/fix_1864

Fix user setting query
This commit is contained in:
Oliver 2021-07-28 07:01:46 +10:00 committed by GitHub
commit 29b496b588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -890,7 +890,7 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
@classmethod @classmethod
def get_filters(cls, key, **kwargs): 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): class PriceBreak(models.Model):