Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly re-export names from __init__ module #591

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions model_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import importlib.metadata

from .choices import Choices # noqa:F401
from .tracker import FieldTracker, ModelTracker # noqa:F401
from .choices import Choices
from .tracker import FieldTracker, ModelTracker

try:
__version__ = importlib.metadata.version('django-model-utils')
except importlib.metadata.PackageNotFoundError: # pragma: no cover
# package is not installed
__version__ = None

__all__ = ("Choices", "FieldTracker", "ModelTracker")
Loading