Skip to content

update python_2_unicode_compatible import location as part of django 3 upgrade #38

@nKandel

Description

@nKandel

modesl.py has python_2_unicode_compatible import from django.utils. Need to update that as a part of django 3 upgrade.

sol: replace: from django.utils.encoding import python_2_unicode_compatible line with: from six import python_2_unicode_compatible


comment from djagno release note:
Removed private Python 2 compatibility APIs

  • django.utils.encoding.python_2_unicode_compatible() - Alias of six.python_2_unicode_compatible().

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