Skip to content

Conversation

954-Ivory
Copy link

Trac ticket number

ticket-N/A

Branch description

Fixed TypeError when selecting a BinaryField in Django Admin list_filter.
Django Admin was passing BinaryField values as repr(bytes) strings instead of actual bytes, causing
TypeError: memoryview: a bytes-like object is required, not 'str'.
This patch ensures the values are properly converted back to bytes.

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

@github-actions github-actions bot added the no ticket Based on PR title, no linked Trac ticket label Aug 16, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

@954-Ivory 954-Ivory force-pushed the bug_fix branch 5 times, most recently from a97a30c to 014c001 Compare August 17, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no ticket Based on PR title, no linked Trac ticket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant