Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 4.0.0 compatibility #2009

Merged
merged 6 commits into from
Dec 30, 2021
Merged

Commits on Dec 21, 2021

  1. Django 4.0.0 compatibility

    Change deprecated and removed methods in Django 4.0
    
    * `url` => `re_path`
    * `smart_text` => `smart_str`
    * `is_safe_url` => `url_has_allowed_host_and_scheme`
    * `force_text` => `force_str`
    * `ungettext` => `ngettext`
    * `urlquote` => quote (urllib.parse)
    
    Fix Signals init
    
    Add `pytz` to requirements. Should migrate from `pytz` to `zoneinfo` at some point
    tswfi committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    6590554 View commit details
    Browse the repository at this point in the history
  2. Add two new deprecation helpers

    `get_middleware_request` for middlewares
    `request_is_ajax` to replace `request.is_ajax()`'
    tswfi committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    6d32094 View commit details
    Browse the repository at this point in the history
  3. blackened

    tswfi committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    d9853ee View commit details
    Browse the repository at this point in the history
  4. Keep Django2.2 support

    tswfi committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    b949d81 View commit details
    Browse the repository at this point in the history
  5. blacken everything

    tswfi committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    abc9345 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2279994 View commit details
    Browse the repository at this point in the history