This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "My Finder", | |
"rules": [ | |
{ | |
"description": "Change Command-Q to Command-W in Finder", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "q", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db.models import Lookup | |
from django.db.models.fields import Field | |
@Field.register_lookup | |
class NotEqual(Lookup): | |
lookup_name = 'ne' | |
def as_sql(self, compiler, connection): | |
lhs, lhs_params = self.process_lhs(compiler, connection) | |
rhs, rhs_params = self.process_rhs(compiler, connection) |
OlderNewer