-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📝 Use generated yaml directive for setup-config docs
and add missing help texts for Service model
- Loading branch information
Showing
6 changed files
with
146 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
zgw_consumers/migrations/0023_add_help_texts_to_service_fields.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Generated by Django 4.2.18 on 2025-01-21 11:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("zgw_consumers", "0022_set_default_service_slug"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="service", | ||
name="api_root", | ||
field=models.CharField( | ||
help_text="The root of the service that will be used to construct the URLs when making requests", | ||
max_length=255, | ||
unique=True, | ||
verbose_name="api root url", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="service", | ||
name="auth_type", | ||
field=models.CharField( | ||
choices=[ | ||
("no_auth", "No authorization"), | ||
("api_key", "API key"), | ||
("zgw", "ZGW client_id + secret"), | ||
], | ||
default="zgw", | ||
help_text="The method of to authorize with the service", | ||
max_length=20, | ||
verbose_name="authorization type", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="service", | ||
name="client_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="The client ID used to construct the JSON Web Token to connect with the service (only needed if auth type is `zgw`)", | ||
max_length=255, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="service", | ||
name="header_key", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="The header key used to store the API key (only needed if auth type is `api_key`)", | ||
max_length=100, | ||
verbose_name="header key", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="service", | ||
name="header_value", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="The API key to connect with the service (only needed if auth type is `api_key`)", | ||
max_length=255, | ||
verbose_name="header value", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="service", | ||
name="secret", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="The secret used to construct the JSON Web Token to connect with the service (only needed if auth type is `zgw`)", | ||
max_length=255, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters