Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #89 #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix issue #89 #118

wants to merge 1 commit into from

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