Skip to content

Fix issue #89 - #118

Open
hardenchant wants to merge 1 commit into
disqus:masterfrom
hardenchant:fix-issue-89
Open

Fix issue #89#118
hardenchant wants to merge 1 commit into
disqus:masterfrom
hardenchant:fix-issue-89

Conversation

@hardenchant

Copy link
Copy Markdown

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

@timabbott

timabbott commented Mar 15, 2021 via email

Copy link
Copy Markdown
Collaborator

@timabbott

Copy link
Copy Markdown
Collaborator

@iamahuman would you be up for finishing this PR?

Comment thread bitfield/admin.py
def queryset(self, request, queryset):
filter_kwargs = dict(
(p, BitHandler(v, ()))
(p, BitHandler(v, getattr(queryset.model, p)))

@iamahuman iamahuman May 28, 2021

Copy link
Copy Markdown
Contributor

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