Skip to content

Commit

Permalink
Added Binary method to database object as required for BinaryField ac…
Browse files Browse the repository at this point in the history
…cording to Django 2.0 docs, Converting query values to database values section: https://docs.djangoproject.com/en/2.0/howto/custom-model-fields/ (doableware#155)
  • Loading branch information
ccravens authored and nesdis committed Aug 13, 2018
1 parent 30cc17e commit aa2eacc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions djongo/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ class ProgrammingError(DatabaseError):

class NotSupportedError(DatabaseError):
pass


def Binary(value):
return value

0 comments on commit aa2eacc

Please sign in to comment.