plain.oauth 0.10.0__py3-none-any.whl → 0.11.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.
@@ -10,7 +10,7 @@ class Migration(migrations.Migration):
10
10
  initial = True
11
11
 
12
12
  dependencies = [
13
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13
+ migrations.settings_dependency(settings.AUTH_USER_MODEL),
14
14
  ]
15
15
 
16
16
  operations = [
plain/oauth/models.py CHANGED
@@ -6,7 +6,7 @@ from plain.exceptions import ValidationError
6
6
  from plain.models import transaction
7
7
  from plain.models.db import IntegrityError, OperationalError, ProgrammingError
8
8
  from plain.preflight import Error
9
- from plain.runtime import settings
9
+ from plain.runtime import SettingsReference
10
10
  from plain.utils import timezone
11
11
 
12
12
  from .exceptions import OAuthUserAlreadyExistsError
@@ -24,7 +24,7 @@ class OAuthConnection(models.Model):
24
24
  updated_at = models.DateTimeField(auto_now=True)
25
25
 
26
26
  user = models.ForeignKey(
27
- settings.AUTH_USER_MODEL,
27
+ SettingsReference("AUTH_USER_MODEL"),
28
28
  on_delete=models.CASCADE,
29
29
  related_name="oauth_connections",
30
30
  )
@@ -125,7 +125,7 @@ class OAuthConnection(models.Model):
125
125
  def connect(
126
126
  cls,
127
127
  *,
128
- user: settings.AUTH_USER_MODEL,
128
+ user,
129
129
  provider_key: str,
130
130
  oauth_token: "OAuthToken",
131
131
  oauth_user: "OAuthUser",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.oauth
3
- Version: 0.10.0
3
+ Version: 0.11.0
4
4
  Summary: OAuth login and API access for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -4,18 +4,18 @@ plain/oauth/admin.py,sha256=rqrGRRUVxOlG9wiuXtndIyQxd1VT67cvFy6qWo7LF-Q,1278
4
4
  plain/oauth/config.py,sha256=5Zc9mdpRgN3R1c9YspFrspWteqB2NAWna2p_-tgoPCc,159
5
5
  plain/oauth/default_settings.py,sha256=dlN1J9vSOjjxPNLp-0qe-cLTqwM4E69ZAx_8lpxMhaM,28
6
6
  plain/oauth/exceptions.py,sha256=TMGtIGkK3_J4rsEy1oPCmia7BnRSK8N8RMZm4_pNelA,189
7
- plain/oauth/models.py,sha256=wWmxjQaaDAsLoZyNardKr0V27VbGB4L7zAUIFZQRCi4,6866
7
+ plain/oauth/models.py,sha256=w4cIkMBsjwYD8caXXRdh2WlGzVjwzVGuRDOmvtbAP2k,6861
8
8
  plain/oauth/providers.py,sha256=WMLr9g3S84lfIRFslO0VBCmthMBDQ3GCDLSIquTA_Y0,7138
9
9
  plain/oauth/urls.py,sha256=OBnn73lu0c9cUMunW9AtkgeSExrksI33MoSuFpBuIlc,733
10
10
  plain/oauth/views.py,sha256=G6icfdKkOOOKB00JVN4SCeZmBcGOGUvAgueyvOd9bLI,3042
11
- plain/oauth/migrations/0001_initial.py,sha256=8-JR2McXDUNRhMRUrrZPqzRNpdROfCsIo5Qkndkn-pg,1756
11
+ plain/oauth/migrations/0001_initial.py,sha256=tsl9L1tAjtig8pqdRk2emR0CtytfVryijTWTgfYiHjQ,1755
12
12
  plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py,sha256=3Mb0IU9KDRQfog0PjVbzuNv_AxCs7UVHnA0F263AKNo,581
13
13
  plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py,sha256=XSd_b8fbFyJQ9Hl117KH9g0-jOzXgekARBAtQqE9G14,625
14
14
  plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha256=ewMJTajyqbyYsxmJqlGtgc3fZPlqZWhX-Fnect1xgnQ,648
15
15
  plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py,sha256=3hmuSvIZhn-haEKOGN3lQzcXD7b_Hy0P8Wa7LOAvJ1k,576
16
16
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  plain/oauth/templates/oauth/error.html,sha256=xkkWw57sZ3fz4dDfH30SVtq3okJNnJmrSRPfGxrxjh8,108
18
- plain_oauth-0.10.0.dist-info/METADATA,sha256=TCb6QTfVfV_FvfoU5uSipRTqL4sU-d31A-9uBN3neJ4,10305
19
- plain_oauth-0.10.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
- plain_oauth-0.10.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
21
- plain_oauth-0.10.0.dist-info/RECORD,,
18
+ plain_oauth-0.11.0.dist-info/METADATA,sha256=w8ef0SYTBTOOvb83Hw5aeafRonUonqYJMtxuTQBHG3w,10305
19
+ plain_oauth-0.11.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
+ plain_oauth-0.11.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
21
+ plain_oauth-0.11.0.dist-info/RECORD,,