Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created August 21, 2023 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/d70a5d6fb142f9a01ed0af128f41ff59 to your computer and use it in GitHub Desktop.
Save brunomichetti/d70a5d6fb142f9a01ed0af128f41ff59 to your computer and use it in GitHub Desktop.
...
@action(detail=False, methods=("GET", "POST",), pagination_class=None)
def leaders(self, request):
...
...
@action(detail=True, methods=("GET",), pagination_class=None)
def tree(self, request, pk):
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment