Skip to content

Conversation

hardenchant
Copy link

Fix issue #89 with Error:
psycopg2.ProgrammingError: can't adapt type 'CombinedExpression'

@timabbott
Copy link
Collaborator

timabbott commented Mar 15, 2021 via email

@timabbott
Copy link
Collaborator

@iamahuman would you be up for finishing this PR?

@@ -23,7 +23,7 @@ def __init__(self, field, request, params, model, model_admin, field_path):

def queryset(self, request, queryset):
filter_kwargs = dict(
(p, BitHandler(v, ()))
(p, BitHandler(v, getattr(queryset.model, p)))
Copy link
Contributor

@iamahuman iamahuman May 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would getattr on a user-supplied model be a safe operation? I need to take a look at this later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants