5monkeys / django-enumfield

Custom Django field for using enumerations of named constants
MIT License
205 stars 46 forks source link

django-enumfield is not Django 3.1rc1 compatible #62

Closed pvergain closed 4 years ago

pvergain commented 4 years ago

Hi,

I'm using django 3.1rc1 and Python 3.8.5 and here is the problem. Do you plan a version for Django 3.1 ?

The classproperty has been moved from utils.decorators to utils.functional

image

Thank you !

Have a nice day.

  from django_enumfield import enum
File "/opt/log_transaction/docker/.venv/lib/python3.8/site-packages/django_enumfield/enum.py", line 8, in <module>
  from django.utils.decorators import classproperty
container_django_transactions_colombie_dev | ImportError: cannot import name 'classproperty' from 'django.utils.decorators' (/opt/log_transaction/docker/.venv/lib/python3.8/site-packages/django/utils/decorators.py)
ca-simone-chiorazzo commented 4 years ago

Any news on this? We are stuck updating to Django 3 due to this problem.

zhavir commented 4 years ago

Could you please provide any update on this issue, please?

hannseman commented 4 years ago

2.0.2 was just released to PyPI. https://pypi.org/project/django-enumfield/2.0.2/

Thanks for your patience!