Skip to content

Commit 34e6e64

Browse files
committed
fix BinaryField encoding
1 parent 35c0871 commit 34e6e64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
empty
7272
from_db_value
7373
lookup.tests.LookupTests.test_escaping
74+
model_fields.test_binaryfield
7475
model_fields.test_datetimefield
7576
model_fields.test_decimalfield
7677
model_fields.test_charfield

django_mongodb/dbapi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from bson import Binary # noqa: F401
2+
3+
14
class Error(Exception):
25
pass
36

@@ -32,7 +35,3 @@ class ProgrammingError(DatabaseError):
3235

3336
class NotSupportedError(DatabaseError):
3437
pass
35-
36-
37-
def Binary(value):
38-
return value

0 commit comments

Comments
 (0)