plain.oauth 0.29.2__py3-none-any.whl → 0.30.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/oauth/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # plain-oauth changelog
2
2
 
3
+ ## [0.30.0](https://github.com/dropseed/plain/releases/plain-oauth@0.30.0) (2025-10-07)
4
+
5
+ ### What's changed
6
+
7
+ - Model metadata is now defined using `model_options = models.Options(...)` instead of `class Meta` ([17a378d](https://github.com/dropseed/plain/commit/17a378d), [73ba469](https://github.com/dropseed/plain/commit/73ba469))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
3
13
  ## [0.29.2](https://github.com/dropseed/plain/releases/plain-oauth@0.29.2) (2025-10-06)
4
14
 
5
15
  ### What's changed
plain/oauth/models.py CHANGED
@@ -41,14 +41,15 @@ class OAuthConnection(models.Model):
41
41
  access_token_expires_at = models.DateTimeField(required=False, allow_null=True)
42
42
  refresh_token_expires_at = models.DateTimeField(required=False, allow_null=True)
43
43
 
44
- class Meta:
45
- constraints = [
44
+ model_options = models.Options(
45
+ constraints=[
46
46
  models.UniqueConstraint(
47
47
  fields=["provider_key", "provider_user_id"],
48
48
  name="plainoauth_oauthconnection_unique_provider_key_user_id",
49
49
  )
50
- ]
51
- ordering = ("provider_key",)
50
+ ],
51
+ ordering=("provider_key",),
52
+ )
52
53
 
53
54
  def __str__(self) -> str:
54
55
  return f"{self.provider_key}[{self.user}:{self.provider_user_id}]"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.oauth
3
- Version: 0.29.2
3
+ Version: 0.30.0
4
4
  Summary: Let users log in with OAuth providers.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -1,18 +1,18 @@
1
- plain/oauth/CHANGELOG.md,sha256=qylweVHAeginfzazOVY53pbo_Ug0KZ_fATie7RPI9D0,6416
1
+ plain/oauth/CHANGELOG.md,sha256=Mruypow7ThQ_Q6s4AytvZrs05E3acN-UEphJ0Q3HrX4,6798
2
2
  plain/oauth/README.md,sha256=5wWECig99tV7g5Hkqmd0ClSH0KpXgu0TRBkY0c_dH3o,11089
3
3
  plain/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  plain/oauth/admin.py,sha256=s259OnTWGeOv3nVl4hAV-lNAIE4d2ObbG_97ENC6TuY,1308
5
5
  plain/oauth/config.py,sha256=0Q4IILBKQbIaxqeL9WRTH5Cka-BO3c3SOj1AdQIAJgc,167
6
6
  plain/oauth/default_settings.py,sha256=dlN1J9vSOjjxPNLp-0qe-cLTqwM4E69ZAx_8lpxMhaM,28
7
7
  plain/oauth/exceptions.py,sha256=yoZsq8XgzstuwbE2ihoet0nzpw_sVZgDrwUauh6hhUs,546
8
- plain/oauth/models.py,sha256=dIlRzRCAAU3gy46ks8bkV9JkznuMNreC3avkKcUTicU,6726
8
+ plain/oauth/models.py,sha256=LXeFnrKM7jWGBUu3A2zfd0YFjYOVjRNUqvtGyU9PugY,6750
9
9
  plain/oauth/providers.py,sha256=I9YAZgvkueFZb0fquhF85qNQDnZMkuTgj1YuVPiPUno,7961
10
10
  plain/oauth/urls.py,sha256=FYzpQwhvZdcat8n3f7RyA-1Q21finKb8JEyakSOjXXg,696
11
11
  plain/oauth/views.py,sha256=_u4qIo4DtZ6x1YH3Byhh20sC4ZwVGlIXcLwWBzSFPxI,2530
12
12
  plain/oauth/migrations/0001_initial.py,sha256=0NjfF7F3szhUXkpK3JvN10Xkat1QR-VvnX6Oed9iFmo,1940
13
13
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  plain/oauth/templates/oauth/callback.html,sha256=4CJG0oAN0xYjw2IPkjaL7B4hwlf9um9LI4CTu50E-yE,173
15
- plain_oauth-0.29.2.dist-info/METADATA,sha256=V4-MnVxCLd-I3XpkFRggr8mNvKAJ2wxwptm1YPJu_BI,11494
16
- plain_oauth-0.29.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- plain_oauth-0.29.2.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
18
- plain_oauth-0.29.2.dist-info/RECORD,,
15
+ plain_oauth-0.30.0.dist-info/METADATA,sha256=rTmYmD1-sCoMstQY8YWuEr-49v-2KNg_G4jc01_0BuQ,11494
16
+ plain_oauth-0.30.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ plain_oauth-0.30.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
18
+ plain_oauth-0.30.0.dist-info/RECORD,,