Hi,
I don't know if people running Django 4.0 will be using django-celery but I had to make some fixes to djcelery in order to get it working.
I had to delete the u from:
ugettext to just gettext
ugettext_lazy to just gettext_lazy
ungettext to use ngettext and then import it as ungettext to leave the rest of the code "reasonably unchanged".
Lastly I changed the force_unicode (force_text) import to import force_str as force_text
The files affected I think were:
- djcelery/admin.py
- djcelery/humanize.py
- djcelery/models.py
- djcelery/picklefield.py
It imports correctly now but I can keep you posted on if it breaks!
Hi,
I don't know if people running Django 4.0 will be using
django-celerybut I had to make some fixes todjceleryin order to get it working.I had to delete the
ufrom:ugettextto justgettextugettext_lazyto justgettext_lazyungettextto usengettextand then import itas ungettextto leave the rest of the code "reasonably unchanged".Lastly I changed the
force_unicode(force_text) import toimport force_str as force_textThe files affected I think were:
It imports correctly now but I can keep you posted on if it breaks!