Collections of libCST codemodder to help upgrades to newer versions of Django.
This is based on libCST and implements codemods for it. This is currently very limited but the aim is to add more for helping with upcoming deprecations.
Currently implemented codemodders are listed below and grouped by the version of Django where deprecations are removed.
Not finding what you need? I'm open to contributions, please send me a pull request.
All these are in the module django_codemod.commands.django_40
:
ForceTextToForceStrCommand
: migrate deprecatedforce_text()
function toforce_str()
.SmartTextToForceStrCommand
: migrate deprecatedsmart_text()
function tosmart_str()
.UGetTextToGetTextCommand
: migrate deprecatedugettext()
function togettext()
.UGetTextLazyToGetTextLazyCommand
: migrate deprecatedugettext_lazy()
function togettext_lazy()
.UGetTextNoopToGetTextNoopCommand
: migrate deprecatedugettext_noop()
function togettext_noop()
.UNGetTextToNGetTextCommand
: migrate deprecatedungettext()
function tongettext()
.UNGetTextLazyToNGetTextLazyCommand
: migrate deprecatedungettext_lazy()
function tongettext_lazy()
.URLToRePathCommand
: migrate deprecatedurl()
function tore_path()
.
All these are in the module django_codemod.commands.django_32
:
Nothing these yet!
All these are in the module django_codemod.commands.django_31
:
Nothing these yet!
All these are in the module django_codemod.commands.django_30
:
Nothing these yet!
Thanks goes to these wonderful people (emoji key):
Bruno Alla ๐ป ๐ ๐ |
Adam Johnson ๐ |
This project follows the all-contributors specification. Contributions of any kind welcome!
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.