mirror of
https://github.com/django/django.git
synced 2025-04-15 12:54:38 +00:00
[1.7.x] Fixed typo in docs/howto/custom-lookups.txt.
Backport of 6bc343d8749b3698dd15d1de59dfc02928bb772c from master
This commit is contained in:
parent
44527ac346
commit
614cbf1c3c
@ -230,7 +230,8 @@ We can change the behavior on a specific backend by creating a subclass of
|
||||
rhs, rhs_params = self.process_rhs(qn, connection)
|
||||
params = lhs_params + rhs_params
|
||||
return '%s != %s' % (lhs, rhs), params
|
||||
Field.register_lookup(MySQLNotExact)
|
||||
|
||||
Field.register_lookup(MySQLNotEqual)
|
||||
|
||||
We can then register it with ``Field``. It takes the place of the original
|
||||
``NotEqual`` class as it has the same ``lookup_name``.
|
||||
|
Loading…
x
Reference in New Issue
Block a user