Skip to content

Commit

Permalink
[#486] Fields type in permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Dec 19, 2024
1 parent 5d2b272 commit a857827
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/objects/setup_configuration/models/token_auth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django_setup_configuration.fields import DjangoModelRef
from django_setup_configuration.models import ConfigurationModel
from pydantic import UUID4, Field

Expand All @@ -6,7 +7,9 @@

class TokenAuthPermissionConfigurationModel(ConfigurationModel):
object_type: UUID4
fields: dict | None = Field(default=None)
fields: dict[str, list[str]] | None = DjangoModelRef(
Permission, "fields", default=None
)

class Meta:
django_model_refs = {
Expand Down

0 comments on commit a857827

Please sign in to comment.