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