mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
27 lines
579 B
TOML
27 lines
579 B
TOML
|
|
[[snippets]]
|
|
prefix = "dispatch"
|
|
detail = "dispatch(self, request, *args, **kwargs)"
|
|
body = """
|
|
def dispatch(self, request, *args, **kwargs):
|
|
return super().dispatch(request, *args, **kwargs)
|
|
"""
|
|
|
|
[[snippets]]
|
|
prefix = "get_context_data"
|
|
detail = "get_context_data(self, **kwargs)"
|
|
body = """
|
|
def get_context_data(self, **kwargs):
|
|
context = super().get_context_data(**kwargs)
|
|
context["$1"] = $0
|
|
return context
|
|
"""
|
|
|
|
[[snippets]]
|
|
prefix = "get_queryset"
|
|
detail = "get_queryset(self)"
|
|
body = """
|
|
def get_queryset(self):
|
|
${1:return} super().get_queryset()$0
|
|
"""
|