Skip to content

Commit

Permalink
Fix up exact comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
LegoStormtroopr committed Dec 31, 2021
1 parent ceb02d2 commit f71632f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions garnett/lookups.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,12 @@ def process_rhs(self, compiler, connection):


@TranslatedKeyTransform.register_lookup
class KeyTransformExact(json.KeyTransformExact):
class KeyTransformExact(json.KeyTransformTextLookupMixin, lookups.Exact):
def process_lhs(self, compiler, connection):
self.lhs = Cast(self.lhs, CharField())
return super().process_lhs(compiler, connection)

def process_rhs(self, compiler, connection):
self.rhs = Cast(self.rhs, CharField())
return super().process_rhs(compiler, connection)


Expand Down

0 comments on commit f71632f

Please sign in to comment.