plain.auth 0.16.0__py3-none-any.whl → 0.17.0__py3-none-any.whl
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.
- plain/auth/CHANGELOG.md +11 -0
- plain/auth/sessions.py +1 -1
- {plain_auth-0.16.0.dist-info → plain_auth-0.17.0.dist-info}/METADATA +2 -2
- {plain_auth-0.16.0.dist-info → plain_auth-0.17.0.dist-info}/RECORD +6 -6
- {plain_auth-0.16.0.dist-info → plain_auth-0.17.0.dist-info}/WHEEL +0 -0
- {plain_auth-0.16.0.dist-info → plain_auth-0.17.0.dist-info}/licenses/LICENSE +0 -0
plain/auth/CHANGELOG.md
CHANGED
|
@@ -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
|
plain/auth/sessions.py
CHANGED
|
@@ -115,7 +115,7 @@ def get_user(request):
|
|
|
115
115
|
|
|
116
116
|
UserModel = get_user_model()
|
|
117
117
|
try:
|
|
118
|
-
user = UserModel.
|
|
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
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plain.auth
|
|
3
|
-
Version: 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.
|
|
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,13 +1,13 @@
|
|
|
1
|
-
plain/auth/CHANGELOG.md,sha256=
|
|
1
|
+
plain/auth/CHANGELOG.md,sha256=1gj4LvlYaXd55IRraPNP9gBbWVa1mjc85kRJyy_KbgU,2162
|
|
2
2
|
plain/auth/README.md,sha256=zPG1AY8pTREu0clHVZDul1fdnv2eqXhMOdwxlnE85sI,3998
|
|
3
3
|
plain/auth/__init__.py,sha256=Id4ON6caLuZoZhu_kL6aMrwnN3Y8gPGVrVGs_V3ofAE,142
|
|
4
4
|
plain/auth/default_settings.py,sha256=65VzDn3j61OMn78Lg6Zuds4A8QKzJJ_0G9KoFqAOIRo,466
|
|
5
5
|
plain/auth/middleware.py,sha256=yiuJ6jg4PW5FpGFEzOzg5SLTjcheRTVPvo4NlmeBKws,1186
|
|
6
|
-
plain/auth/sessions.py,sha256=
|
|
6
|
+
plain/auth/sessions.py,sha256=ZVNHy_uqz74uJr54AqtlfgAWucCuIbtV6hwm_iMxMQQ,5414
|
|
7
7
|
plain/auth/test.py,sha256=KfZSiX9S0p3AtCFAS4dUz4ctGIpOmLAGR-8nxAtM2TY,1163
|
|
8
8
|
plain/auth/utils.py,sha256=eEON0Mo928l-aW5tqBuoTdVke8aP4majxVtAFoLroSE,1280
|
|
9
9
|
plain/auth/views.py,sha256=_igztEBQKSM4CZro2lvlK0m01eIksqbmyux4w8gY1ks,4095
|
|
10
|
-
plain_auth-0.
|
|
11
|
-
plain_auth-0.
|
|
12
|
-
plain_auth-0.
|
|
13
|
-
plain_auth-0.
|
|
10
|
+
plain_auth-0.17.0.dist-info/METADATA,sha256=oQz9ux8GoKp4U-xt5eYfnAXbq-afrw2QO-XSx9DY1S0,4358
|
|
11
|
+
plain_auth-0.17.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
plain_auth-0.17.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
|
|
13
|
+
plain_auth-0.17.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|