django-model-utils/model_utils/__init__.py

11 lines
343 B
Python
Raw Normal View History

2020-11-29 20:58:00 +00:00
from pkg_resources import DistributionNotFound, get_distribution
2020-11-29 13:39:17 +00:00
2018-07-02 19:16:41 +00:00
from .choices import Choices # noqa:F401
from .tracker import FieldTracker, ModelTracker # noqa:F401
2020-11-29 13:39:17 +00:00
try:
__version__ = get_distribution("django-model-utils").version
2020-11-29 14:00:33 +00:00
except DistributionNotFound: # pragma: no cover
2020-11-29 13:39:17 +00:00
# package is not installed
2020-11-29 14:00:33 +00:00
__version__ = None