django-eav2/eav/__init__.py
Iwo Herka 1813cacf1b Simplify assignment to __version__
This commit removes `get_version` helper which is completely useless and
not used anywhere else, i.e. from now on `__version__` is assigned directly.
As a side-effect, this makes patch number always visible in the
version number. This is correct behavior; there is no reason to hide it
when it equals 0.

Links: https://semver.org/
2018-05-30 17:12:09 +02:00

10 lines
244 B
Python

__version__ = '0.9.2'
def register(model_cls, config_cls=None):
from .registry import Registry
Registry.register(model_cls, config_cls)
def unregister(model_cls):
from .registry import Registry
Registry.unregister(model_cls)