def __init__(self, key, base_field, *args, **kwargs):
        super(KeyTransform, self).__init__(*args, **kwargs)
        try:
            self.key = int(key)
        except __HOLE__:
            self.key = key

        self.base_field = base_field
dataset/ETHPy150Open djangonauts/django-pgjson/django_pgjson/lookups.py/KeyTransform.__init__