Skip to content

Instantly share code, notes, and snippets.

@pzelnip
Created March 2, 2023 17:31
Show Gist options
  • Save pzelnip/a9fa03dabaf445347142d9ca17121252 to your computer and use it in GitHub Desktop.
Save pzelnip/a9fa03dabaf445347142d9ca17121252 to your computer and use it in GitHub Desktop.
Test code snippet
@classmethod
def get_sort_key(cls, **kwargs):
_id = kwargs.get("sort_id")
return f"{cls.classname()}:{_id}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment