Skip to content

Instantly share code, notes, and snippets.

View kiawin's full-sized avatar

Sian Lerk Lau kiawin

View GitHub Profile
@kiawin
kiawin / vscode_marketplace
Created February 25, 2026 02:44 — forked from tejainece/vscode_marketplace
Marketplace for VS code to be used in Antigravity
https://marketplace.visualstudio.com/items
https://marketplace.visualstudio.com/_apis/public/gallery
class CustomQuerySetManager(Manager):
"""
A re-usable Manager to access a custom QuerySet
"""
def __getattr__(self, attr):
# don't delegate internal methods to queryset
# NOTE: without this, Manager._copy_to_model will end up calling
# __getstate__ on the *queryset* which causes the qs (as `all()`)
# to evaluate itself as if it was being pickled (`len(self)`)
if attr.startswith('__'):