Skip to content

Version 2.0.0

Choose a tag to compare

@mjnaderi mjnaderi released this 23 Feb 11:07
· 14 commits to main since this release

What's Changed

  • Add support for Python 3.13 and drop support for Python 3.8.

Backward-incompatible changes:

  • The IP is now read directly from the value of REMOTE_ADDR (instead of relying on django-ipware) for the same reason Django
    removed SetRemoteAddrFromForwardedFor middleware in 1.1. If you are using a reverse proxy, you should configure it to pass the real IP address in the REMOTE_ADDR header, or you can write a custom version of SetRemoteAddrFromForwardedFor middleware which suits your environment.
  • session.location and session.location_info are now properties instead of methods.
  • session.device is now a property instead of a method and returns string.
  • The device object can be accessed using the new property session.device_info.
  • User agent parsing is now done using ua-parser instead of user-agents.
    • The device object is now an instance of ua_parser.core.Result instead of user_agents.parsers.UserAgent.

Full Changelog: v1.1.5...v2.0.0