Fixed typo in docs/howto/custom-lookups.txt.

This commit is contained in:
Quentin Pradet 2014-12-07 21:02:19 +01:00 committed by Tim Graham
parent 7d833ee38a
commit 6bc343d874
1 changed files with 2 additions and 1 deletions

View File

@ -280,7 +280,8 @@ We can change the behavior on a specific backend by creating a subclass of
rhs, rhs_params = self.process_rhs(compiler, 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``.