# Path: django_cassandra_engine/compat.py



import os
from django.apps import AppConfig as DjangoAppConfig
from .compat import columns
        from django_cassandra_engine.utils import get_cassandra_connections
    def __bool__(self):
        return self.value

    def __call__(self):
        return self.value

    def __nonzero__(self):  # Python 2 compatibility
        return self.value

    def __repr__(self):
        return "CallableBool(%r)" % self.value

    def __eq__(self, other):
        return self.value == other

    def __ne__(self, other):
        return self.value != other

    def __or__(self, other):
        return bool(self.value or other)

    def __hash__(self):
        return hash(self.value)


def has_default(self):
    return CallableBool(self.default is not None)


# monkey patch Column.has_default to be able to use function call too

# Path: django_cassandra_engine/compat.py



# Path: django_cassandra_engine/apps.py
import os
from django.apps import AppConfig as DjangoAppConfig
from .compat import columns
        from django_cassandra_engine.utils import get_cassandra_connections

    def __bool__(self):
        return self.value

    def __call__(self):
        return self.value

    def __nonzero__(self):  # Python 2 compatibility
        return self.value

    def __repr__(self):
        return "CallableBool(%r)" % self.value

    def __eq__(self, other):
        return self.value == other

    def __ne__(self, other):
        return self.value != other

    def __or__(self, other):
        return bool(self.value or other)

    def __hash__(self):
        return hash(self.value)


def has_default(self):
    return CallableBool(self.default is not None)


# monkey patch Column.has_default to be able to use function call too

columns.Column.has_default = property(has_default)