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

Django 4.1 compatibility issue with "ugettext" #103

Open
mnamegaurav opened this issue Aug 18, 2022 · 14 comments
Open

Django 4.1 compatibility issue with "ugettext" #103

mnamegaurav opened this issue Aug 18, 2022 · 14 comments

Comments

@mnamegaurav
Copy link

I am getting this error as soon as I try to use FSMTransitionMixin.
ImportError: cannot import name 'ugettext' from 'django.utils.translation'

@radokristof
Copy link

Same for me as well

@pfcodes
Copy link

pfcodes commented Oct 19, 2022

+1

@neilh
Copy link

neilh commented Nov 3, 2022

It's cause this code is not in the current pip 1.2.5 version mixins.py


if django.VERSION < (4, 0):
    from django.utils.encoding import force_text as force_str
    from django.utils.translation import ugettext_lazy as _
else:
    from django.utils.encoding import force_str
    from django.utils.translation import gettext_lazy as```

@raratiru
Copy link

raratiru commented Nov 10, 2022

It's cause this code is not in the current pip 1.2.5 version mixins.py

@neilh I had opened a pole on which pr for the issue is the best...

And the winner is #92 !

@Cupcee
Copy link

Cupcee commented Nov 18, 2022

When is this coming to PyPI?

@SuEric
Copy link

SuEric commented Dec 15, 2022

when will this be available in pypi?

@pfcodes
Copy link

pfcodes commented Dec 28, 2022

please publish to pypi

@aeyoll
Copy link

aeyoll commented Jan 16, 2023

Hello,
Is it possible to publish a new version on PyPI please?

Thanks a lot

@neilh
Copy link

neilh commented Jan 16, 2023

If you don't want to wait for PyPI, you can add the latest versions like so

$ pip install git+https://github.com/gadventures/django-fsm-admin@fe59a4b09657e011c20e379d262e49c45ba430e7

update after @ to whichever commit version you want. It'll freeze that to your requirements.txt too.

@holvi-mikael
Copy link

Would much appreciate a release for this fix, or failing that, a date when it is planned to be released?

@yigor
Copy link

yigor commented Apr 7, 2023

It would to be great to have the latest version published into PyPI now that Django 4.2 LTS is released!

@MarvinGS
Copy link

It looks like this is fixed by the merge of #92 in october 2022 but i still get the error in august 2023 with a fresh install of Django 4.2 LTS. How do we get the update to PyPI? Can i help?

@samuel-andres
Copy link

Please, update the PyPI package

@nikatlas
Copy link

I pushed in PyPi the latest main if someone is interested:

https://pypi.org/project/django-fsm-admin-v4/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests