django-model-utils/model_utils/__init__.py
2020-11-29 15:00:33 +01:00

10 lines
343 B
Python

from pkg_resources import get_distribution, DistributionNotFound
from .choices import Choices # noqa:F401
from .tracker import FieldTracker, ModelTracker # noqa:F401
try:
__version__ = get_distribution("django-model-utils").version
except DistributionNotFound: # pragma: no cover
# package is not installed
__version__ = None