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

Django Lookup Snippets

by icycandle ALL

Snippets for Django ORM Query Lookup

Details

Installs

  • Total 7K
  • Win 3K
  • Mac 1K
  • Linux 2K
Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 0 2 0 0 0 0 2
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0
Linux 0 0 0 0 1 0 0 2 0 0 0 1 1 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 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()