Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Eduardo Oliveira
Egor Poderiagin
Emanuele Palazzetti
Fazeel Ghafoor
Febin Micheal Antony
Federico Dolce
Florian Demmer
Frederico Vieira
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
* #1628 Fix inaccurate help_text on client_secret field of Application model
* #1656 Fix duplicate unique constraint for device_code on Oracle 19c

## [3.2.0] - 2025-11-13
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class Migration(migrations.Migration):
options={
'abstract': False,
'swappable': 'OAUTH2_PROVIDER_DEVICE_GRANT_MODEL',
'constraints': [models.UniqueConstraint(fields=('device_code',), name='oauth2_provider_devicegrant_unique_device_code')],
},
),
]
6 changes: 0 additions & 6 deletions oauth2_provider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,12 +658,6 @@ class Meta(AbstractIDToken.Meta):
class AbstractDeviceGrant(models.Model):
class Meta:
abstract = True
constraints = [
models.UniqueConstraint(
fields=["device_code"],
name="%(app_label)s_%(class)s_unique_device_code",
),
]

AUTHORIZED = "authorized"
AUTHORIZATION_PENDING = "authorization-pending"
Expand Down
Loading