mirror of
https://github.com/django/django.git
synced 2025-09-11 13:06:29 +00:00
Fixed #1465: added support for regex lookups. Thanks, Tom Tobin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7dc8b1a1a8
commit
24512a74be
10 changed files with 170 additions and 2 deletions
|
@ -247,6 +247,8 @@ OPERATOR_MAPPING = {
|
|||
'iexact': 'LIKE %s',
|
||||
'contains': 'LIKE BINARY %s',
|
||||
'icontains': 'LIKE %s',
|
||||
'regex': 'REGEXP BINARY %s',
|
||||
'iregex': 'REGEXP %s',
|
||||
'gt': '> %s',
|
||||
'gte': '>= %s',
|
||||
'lt': '< %s',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue