Skip to content

Commit

Permalink
fix BinaryField encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Apr 24, 2024
1 parent 549dd06 commit f8fdc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
basic
from_db_value
lookup.tests.LookupTests.test_escaping
model_fields.test_binaryfield
model_fields.test_datetimefield
model_fields.test_decimalfield
model_fields.test_charfield
Expand Down
5 changes: 1 addition & 4 deletions django_mongodb/dbapi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from bson import Binary # noqa: F401
from pymongo import MongoClient

clients = {}
Expand Down Expand Up @@ -45,7 +46,3 @@ class ProgrammingError(DatabaseError):

class NotSupportedError(DatabaseError):
pass


def Binary(value):
return value

0 comments on commit f8fdc38

Please sign in to comment.