Skip to content

Commit

Permalink
[#486] Permissions can be empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Dec 17, 2024
1 parent 3eeda7a commit cb4bee2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/objects/setup_configuration/models/token_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class Meta:


class TokenAuthConfigurationModel(ConfigurationModel):
permissions: list[TokenAuthPermissionConfigurationModel]
permissions: list[TokenAuthPermissionConfigurationModel] | None = Field(
default_factory=list,
)

class Meta:
django_model_refs = {
Expand Down

0 comments on commit cb4bee2

Please sign in to comment.