plain.oauth 0.29.2__tar.gz → 0.30.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.
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/PKG-INFO +1 -1
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/CHANGELOG.md +10 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/models.py +5 -4
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/pyproject.toml +1 -1
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/users/models.py +4 -3
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/.gitignore +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/LICENSE +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/README.md +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/README.md +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/__init__.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/admin.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/config.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/default_settings.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/exceptions.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/migrations/0001_initial.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/migrations/__init__.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/providers.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/templates/oauth/callback.html +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/urls.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/plain/oauth/views.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/provider_examples/__init__.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/provider_examples/bitbucket.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/provider_examples/github.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/provider_examples/gitlab.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/settings.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/templates/base.html +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/templates/index.html +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/templates/login.html +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/urls.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/users/migrations/0001_initial.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/app/users/migrations/__init__.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/provider_tests/__init__.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/provider_tests/test_github.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/providers/__init__.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/providers/bitbucket.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/providers/github.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/providers/gitlab.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/test_backends.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/test_checks.py +0 -0
- {plain_oauth-0.29.2 → plain_oauth-0.30.0}/tests/test_providers.py +0 -0
@@ -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
|
@@ -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
|
-
|
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
|
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}]"
|
@@ -6,11 +6,12 @@ class User(models.Model):
|
|
6
6
|
email = models.EmailField()
|
7
7
|
username = models.CharField(max_length=100)
|
8
8
|
|
9
|
-
|
10
|
-
constraints
|
9
|
+
model_options = models.Options(
|
10
|
+
constraints=[
|
11
11
|
models.UniqueConstraint(fields=["email"], name="user_unique_email"),
|
12
12
|
models.UniqueConstraint(fields=["username"], name="user_unique_username"),
|
13
|
-
]
|
13
|
+
],
|
14
|
+
)
|
14
15
|
|
15
16
|
def __str__(self):
|
16
17
|
return self.username
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|