Skip to content

Commit

Permalink
query: no prepared param for get_db_prep_lookup
Browse files Browse the repository at this point in the history
Looking up in Django codebase, the `prepared` parameter for
get_db_prep_lookup appears nowhere.  Its existence is harmless since
it's an optional argument, but confusing nonetheless.
  • Loading branch information
ortholeviator authored and timabbott committed Apr 6, 2020
1 parent 8de6743 commit ee306bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitfield/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def process_lhs(self, qn, connection, lhs=None):
params.extend(self.get_db_prep_lookup(self.rhs, connection)[1])
return lhs_sql, params

def get_db_prep_lookup(self, value, connection, prepared=False):
def get_db_prep_lookup(self, value, connection):
v = value.mask if isinstance(value, (BitHandler, Bit)) else value
return super(BitQueryLookupWrapper, self).get_db_prep_lookup(v, connection)

Expand Down

0 comments on commit ee306bb

Please sign in to comment.