django-codemod

A tool to automatically fix Django deprecations.

MIT License

Downloads
7.8K
Stars
173
Committers
22

Bot releases are visible (Hide)

django-codemod - v0.13.1

Published by github-actions[bot] about 4 years ago

🐛 Bug Fixes

  • Python wheels are not for Python 2 (#193) @browniebroke
django-codemod - v0.13.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Add CLI command to list all codemodders (#156) @browniebroke

✅ Testing

  • Internal refactoring of CLI and test improvements (#157) @browniebroke
django-codemod - v0.12.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Support replacing call to url with simple patterns by path (#138) @browniebroke
django-codemod - v0.11.0

Published by browniebroke over 4 years ago

🚀 Enhancements

  • Add module rename support and URLResolversTransformer (#123) @jayvdb
django-codemod - v0.10.1

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Rename constants for numerical sorting (#139) @jayvdb

✅ Testing

  • Upload coverage report using codecov action (#130) @browniebroke
  • Split tests and docs requirements (#131) @browniebroke
django-codemod - v0.10.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Add support for adding on_delete for ForeignKey and OneToOneField (#117) @cvanderkolk

🐛 Bug Fixes

  • Fix bug with CLI processing entire filesystem (#126) @browniebroke

✅ Testing

  • Move CODECOV_TOKEN from cmd line option to environment (#118) @browniebroke
django-codemod - v0.9.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Handle deprecation of @models.permalink decorator in Django 1.11 (#87) @browniebroke
  • Resolve deprecation of django.utils.decorators.available_attrs in Django 2.0 (#85) @browniebroke
  • Resolve deprecation of django.utils.decorators.ContextDecorator in Django 2.0 (#84) @browniebroke

🔥 Removals

  • Remove the custom hardcoded libCST commands (#114) @browniebroke

📖 Documentation updates

  • Convert documentation to Markdown using MyST parser (#113) @browniebroke

✅ Testing

  • Use codecov to upload coverage data cross-platform (#105) @browniebroke
  • Remove Travis CI (#103) @browniebroke
django-codemod - v0.8.1

Published by github-actions[bot] over 4 years ago

🐛 Bug Fixes

  • Support fixing calls to base class has_add_permission in Admin Inline (#83) @browniebroke

📖 Documentation updates

  • Mention changes around tests in changelog (#82) @browniebroke

✅ Testing

  • Increase test code coverage to 100% (#81) @browniebroke
django-codemod - v0.8.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Resolve some removed private Python 2 compatibility APIs (#74) @browniebroke
  • Resolve deprecation of django.utils.http.is_safe_url in Django 3.0 (#72) @browniebroke
  • Resolve deprecation of django.utils.text.unescape_entities in Django 3.0 (#70) @browniebroke
  • Resolve deprecations from django.utils.http in Django 3.0 (#69) @browniebroke
  • Add new CLI option --deprecated-in (#64) @browniebroke
  • Make InlineHasAddPermissionsTransformer more robust (#60) @browniebroke

🐛 Bug Fixes

  • Fix version deprecated for several Django 4.0 visitors (#68) @browniebroke
django-codemod - v0.7.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Add a djcodemod CLI (#55) @browniebroke

🐛 Bug Fixes

  • Make sure the function to rename is imported before renaming (#54) @browniebroke

📖 Documentation updates

  • Updates README.me with proper travis badge (#50) @sobolevn
django-codemod - v0.6.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Add the obj argument to InlineModelAdmin.has_add_permission() (#45) @browniebroke

🐛 Bug Fixes

  • Fix InlineModelAdmin transformer with multiple base classes (#46) @browniebroke
  • Fix commands non-findable by libCST (#44) @browniebroke
  • Fix bug with trailing comma when removed import is the last one (#39) @browniebroke
  • Fix bug with lost alias when 'import as' is used (#38) @browniebroke

🗑 Removals

  • Remove commands to fix single deprecations (#43) @browniebroke
django-codemod - v0.5.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • New commands to fix all deprecations for a given version of Django (#37) @browniebroke
  • Refactor & move main logic from commands to visitors (#36) @browniebroke
  • Refactor BaseSimpleFuncRename to simplify implementing new codemod (#32) @browniebroke

📖 Documentation updates

  • Document list of codemodders with autodoc (#33) @browniebroke
django-codemod - v0.4.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Resolve deprecation for django.shortcuts.render_to_response() (#25) @browniebroke

📖 Documentation updates

  • Add missing description for URLToRePathCommand (#28) @browniebroke
  • Document how to list all available codemodders (#27) @browniebroke
django-codemod - v0.3.0

Published by github-actions[bot] over 4 years ago

🚀 Enhancements

  • Support resolving django.conf.urls.url() deprecation (#22) @browniebroke

📖 Documentation updates

  • Fix some refs in README (#21) @adamchainz
django-codemod - v0.2.1

Published by github-actions[bot] over 4 years ago

Changes

Mostly changes in packaging.

🚀 Enhancements

  • Migrate package metadata to declarative syntax (#19) @browniebroke
django-codemod - v0.2.0

Published by github-actions[bot] over 4 years ago

Changes

⚠️ Breaking Changes

  • Rename commands to reflect the functions they work with (#13) @browniebroke
  • Rename module and extract logic out into a base command (#9) @browniebroke

🚀 Enhancements

  • Support resolving django.utils.translation.ungettext_lazy deprecation (#17) @browniebroke
  • Support resolving django.utils.translation.ungettext deprecation (#16) @browniebroke
  • Support resolving django.utils.translation.ugettext_noop deprecation (#15) @browniebroke
  • Support resolving django.utils.translation.ugettext_lazy deprecation (#14) @browniebroke
  • Support resolving django.utils.translation.ugettext deprecation (#12) @browniebroke
  • Support smart_text deprecation, replace by smart_str (#10) @browniebroke
  • Refactor checks to use matchers (#8) @browniebroke

🗑 Removals

  • Remove unused entry point (#18) @browniebroke
django-codemod - v0.1.1

Published by github-actions[bot] over 4 years ago

Changes

🐛 Bug Fixes

  • Fix bug for immediately invoked anonymous functions (#6) @browniebroke
  • Fix ForceTextToStrCommand when other imports are present in the file (#2) @browniebroke
django-codemod - First one

Published by github-actions[bot] over 4 years ago

Changes

🚀 Enhancements

  • Codemod to replace force_text by force_str (#1) @browniebroke