rsinger86/django-lifecycle

Can't import LifecycleModel or LifecycleMixin in v1.2.0

selcuk opened this issue · 5 comments

The first sample code in the README starts with

from django_lifecycle import LifecycleModel, hook, BEFORE_UPDATE, AFTER_UPDATE

However, in v1.2.0 that does not work anymore:

Traceback (most recent call last):
...
ImportError: cannot import name 'LifecycleModel' from 'django_lifecycle' (.venv/lib/python3.10/site-packages/django_lifecycle/__init__.py)

Similarly LifecycleMixin and hook can't be imported either.

It should be fixed now (in 1.2.3), could you try it now?

Thanks for reporting it!

thanks @EnriqueSoria - I had the same error and it is fixed for me in 1.2.3.

Can confirm v1.2.3 fixed it. Thank you @EnriqueSoria for the quick response.

We've already excluded the previous versions in our dependencies, but you may consider pulling the broken releases from PyPI.

@rsinger86 Could you remove versions 1.2.0, 1.2.1 and 1.2.2 from pypi? Or maybe add me as mantainer

I just deleted them and added you as a maintainer. Thanks for the nudge!