File: __init__.py

package info (click to toggle)
django-model-utils 4.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 552 kB
  • sloc: python: 3,438; makefile: 181
file content (10 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from pkg_resources import DistributionNotFound, get_distribution

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