Support for `python_2_unicode_compatible` decorator removed in Django 3
@PiDelport I have tested this simple patch in my project successfully (Python version 3.6.6 and Django==3.0.2).
I have however not run the test suite nor have I removed the use of the six module, in case you still want to continue support for Python 2.
References
- I've found this Django commit rather useful. It shows how the Django maintainers removed the
sixmodule. - As mentioned in Issue #14 the django-registration Django 3 support shows how they have removed the use of
python_2_unicode_compatible.
Codecov Report
:exclamation: No coverage uploaded for pull request base (
master@9c14aec). Click here to learn what that means. The diff coverage is40.00%.
:exclamation: Current head 4f7a308 differs from pull request most recent head 8c6580b. Consider uploading reports for the commit 8c6580b to get more accurate results
@@ Coverage Diff @@
## master #15 +/- ##
=========================================
Coverage ? 89.50%
=========================================
Files ? 12
Lines ? 486
Branches ? 44
=========================================
Hits ? 435
Misses ? 39
Partials ? 12
| Impacted Files | Coverage Δ | |
|---|---|---|
| payfast/models.py | 93.22% <40.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 9c14aec...8c6580b. Read the comment docs.