You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using django-upgrade on current codebase would result in only changing request.META["HTTP_REFERER"] to request.headers["referer"] as defined by a Request Headers fixer. The rest of the codebase is awesome! 💥
Cheers 🍻 from 🇨🇿
The text was updated successfully, but these errors were encountered:
SukiCZ
added a commit
to SukiCZ/formula
that referenced
this issue
Mar 4, 2025
I believe this repo is widely used as a hands-on experience with documentation, hence the repo should follow best Django (and Python) practicies.
One way to up 🆙 the best practicies is to follow django-upgrade (and pyupgrade) pre-commit hook. Pyupgrade is managed by Ruff PU rules
Using django-upgrade on current codebase would result in only changing
request.META["HTTP_REFERER"]
torequest.headers["referer"]
as defined by a Request Headers fixer. The rest of the codebase is awesome! 💥Cheers 🍻 from 🇨🇿
The text was updated successfully, but these errors were encountered: