ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Django Lookup Snippets

by icycandle ST2/ST3

Snippets for Django ORM Query Lookup

Details

Installs

  • Total 4K
  • Win 2K
  • OS X 763
  • Linux 2K
Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8
Windows 0 1 2 0 0 0 1 1 1 4 4 0 1 4 0 2 2 1 2 2 1 3 2 1 1 2 2 3 1 3 2 1 0 1 1 3 2 1 1 3 0 2 0 4 1 2
OS X 0 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 0 1 0 0 1 0 2 1 0 0 0 2 1 0 0 1 1 1 0 3 2
Linux 0 0 0 0 0 0 0 0 2 3 0 0 1 1 0 0 2 3 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 2 2 3 0 1 2 4 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-django-lookup

demo.gif

Trigger Table

These snippet's scope is meta.function-call.arguments.python, so they will only trigger in function call's parenthesis (), instead of mess up with other python meta method snippets like __init__.

Trigger Lookup
__in field__isnull=True,
__g field__gt=0,
__ge field__gte=0,
__l field__lt=0,
__le field__lte=0,
__i field__in=[],
__r field__range=(start_value, end_value),
__e field__exact=None,
__ie field__iexact=None,
__s field__search='string',
__c field__contains='string',
__ic field__icontains='string',
__iew field__iendswith='string',
__ew field__endswith='string',
__ss field__startswith='string',
__iss field__istartswith='string',
__re field__regex=r'^reg-exp',
__ir field__iregex=r'^reg-exp',
__y field__year=2020,
__mon field__month=1-12,
__d field__day=1-31,
__h field__hour=0-23,
__min field__minute=0-59,
__sec field__second=0-59,
__w field__week_day=Sun_as_1_Sat_as_7,
__dt field__date=datetime.today()