Skip to content

Changing instances of ugettext, ugettext_lazy, ungettext, and force_unicode for Django 4.0 #617

Open
@TomBlackwoodTTM

Description

@TomBlackwoodTTM

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions