plain.auth 0.16.0__tar.gz → 0.17.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.auth
3
- Version: 0.16.0
3
+ Version: 0.17.0
4
4
  Summary: Add users to your app and decide what they can access.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
7
- Requires-Python: >=3.11
7
+ Requires-Python: >=3.13
8
8
  Requires-Dist: plain-models<1.0.0
9
9
  Requires-Dist: plain-sessions<1.0.0
10
10
  Requires-Dist: plain<1.0.0
@@ -1,5 +1,16 @@
1
1
  # plain-auth changelog
2
2
 
3
+ ## [0.17.0](https://github.com/dropseed/plain/releases/plain-auth@0.17.0) (2025-09-12)
4
+
5
+ ### What's changed
6
+
7
+ - Model managers are now accessed via `.query` instead of `.objects` ([037a239](https://github.com/dropseed/plain/commit/037a239ef4))
8
+ - Updated to require Python 3.13 minimum ([d86e307](https://github.com/dropseed/plain/commit/d86e307efb))
9
+
10
+ ### Upgrade instructions
11
+
12
+ - Replace any usage of `Model.objects` with `Model.query` in your code (e.g., `User.objects.get()` becomes `User.query.get()`)
13
+
3
14
  ## [0.16.0](https://github.com/dropseed/plain/releases/plain-auth@0.16.0) (2025-08-19)
4
15
 
5
16
  ### What's changed
@@ -115,7 +115,7 @@ def get_user(request):
115
115
 
116
116
  UserModel = get_user_model()
117
117
  try:
118
- user = UserModel._default_manager.get(id=request.session[USER_ID_SESSION_KEY])
118
+ user = UserModel.query.get(id=request.session[USER_ID_SESSION_KEY])
119
119
  except UserModel.DoesNotExist:
120
120
  return None
121
121
 
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "plain.auth"
3
- version = "0.16.0"
3
+ version = "0.17.0"
4
4
  description = "Add users to your app and decide what they can access."
5
5
  authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
6
6
  readme = "README.md"
7
- requires-python = ">=3.11"
7
+ requires-python = ">=3.13"
8
8
  dependencies = [
9
9
  "plain<1.0.0",
10
10
  "plain.models<1.0.0",
@@ -22,7 +22,7 @@ def test_admin_required(db):
22
22
  # login required first
23
23
  assert client.get("/admin/").status_code == 302
24
24
 
25
- user = get_user_model().objects.create(username="user")
25
+ user = get_user_model().query.create(username="user")
26
26
  client.force_login(user)
27
27
  # not admin -> 404
28
28
  assert client.get("/admin/").status_code == 404
File without changes
File without changes
File without changes