Skip to content

Commit f9aaa7b

Browse files
committed
authentik/stages: update friendly_name model from null to blank
1 parent 7182b22 commit f9aaa7b

10 files changed

Lines changed: 154 additions & 72 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 5.1.12 on 2025-09-08 19:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("authentik_stages_authenticator_endpoint_gdtc", "0001_initial"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="authenticatorendpointgdtcstage",
15+
name="friendly_name",
16+
field=models.TextField(blank=True, default=""),
17+
preserve_default=False,
18+
),
19+
]

authentik/flows/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class Meta:
291291
class FriendlyNamedStage(models.Model):
292292
"""Abstract base class for a Stage that can have a user friendly name configured."""
293293

294-
friendly_name = models.TextField(null=True)
294+
friendly_name = models.TextField(blank=True)
295295

296296
class Meta:
297297
abstract = True
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 5.1.12 on 2025-09-08 19:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
(
10+
"authentik_stages_authenticator_duo",
11+
"0006_duodevice_created_duodevice_last_updated_and_more",
12+
),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name="authenticatorduostage",
18+
name="friendly_name",
19+
field=models.TextField(blank=True, default=""),
20+
preserve_default=False,
21+
),
22+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 5.1.12 on 2025-09-08 19:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("authentik_stages_authenticator_email", "0001_initial"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="authenticatoremailstage",
15+
name="friendly_name",
16+
field=models.TextField(blank=True, default=""),
17+
preserve_default=False,
18+
),
19+
]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 5.1.12 on 2025-09-08 19:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
(
10+
"authentik_stages_authenticator_sms",
11+
"0007_smsdevice_created_smsdevice_last_updated_and_more",
12+
),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name="authenticatorsmsstage",
18+
name="friendly_name",
19+
field=models.TextField(blank=True, default=""),
20+
preserve_default=False,
21+
),
22+
]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 5.1.12 on 2025-09-08 19:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
(
10+
"authentik_stages_authenticator_static",
11+
"0010_staticdevice_created_staticdevice_last_updated_and_more",
12+
),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name="authenticatorstaticstage",
18+
name="friendly_name",
19+
field=models.TextField(blank=True, default=""),
20+
preserve_default=False,
21+
),
22+
]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 5.1.12 on 2025-09-08 19:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
(
10+
"authentik_stages_authenticator_totp",
11+
"0011_totpdevice_created_totpdevice_last_updated_and_more",
12+
),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name="authenticatortotpstage",
18+
name="friendly_name",
19+
field=models.TextField(blank=True, default=""),
20+
preserve_default=False,
21+
),
22+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 5.1.12 on 2025-09-08 19:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("authentik_stages_authenticator_webauthn", "0013_authenticatorwebauthnstage_max_attempts"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="authenticatorwebauthnstage",
15+
name="friendly_name",
16+
field=models.TextField(blank=True, default=""),
17+
preserve_default=False,
18+
),
19+
]

blueprints/schema.json

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6118,11 +6118,7 @@
61186118
"description": "Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage."
61196119
},
61206120
"friendly_name": {
6121-
"type": [
6122-
"string",
6123-
"null"
6124-
],
6125-
"minLength": 1,
6121+
"type": "string",
61266122
"title": "Friendly name"
61276123
},
61286124
"credentials": {
@@ -12165,11 +12161,7 @@
1216512161
"description": "Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage."
1216612162
},
1216712163
"friendly_name": {
12168-
"type": [
12169-
"string",
12170-
"null"
12171-
],
12172-
"minLength": 1,
12164+
"type": "string",
1217312165
"title": "Friendly name"
1217412166
},
1217512167
"client_id": {
@@ -12360,11 +12352,7 @@
1236012352
"description": "Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage."
1236112353
},
1236212354
"friendly_name": {
12363-
"type": [
12364-
"string",
12365-
"null"
12366-
],
12367-
"minLength": 1,
12355+
"type": "string",
1236812356
"title": "Friendly name"
1236912357
},
1237012358
"use_global_settings": {
@@ -12593,11 +12581,7 @@
1259312581
"description": "Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage."
1259412582
},
1259512583
"friendly_name": {
12596-
"type": [
12597-
"string",
12598-
"null"
12599-
],
12600-
"minLength": 1,
12584+
"type": "string",
1260112585
"title": "Friendly name"
1260212586
},
1260312587
"provider": {
@@ -12810,11 +12794,7 @@
1281012794
"description": "Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage."
1281112795
},
1281212796
"friendly_name": {
12813-
"type": [
12814-
"string",
12815-
"null"
12816-
],
12817-
"minLength": 1,
12797+
"type": "string",
1281812798
"title": "Friendly name"
1281912799
},
1282012800
"token_count": {
@@ -12994,11 +12974,7 @@
1299412974
"description": "Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage."
1299512975
},
1299612976
"friendly_name": {
12997-
"type": [
12998-
"string",
12999-
"null"
13000-
],
13001-
"minLength": 1,
12977+
"type": "string",
1300212978
"title": "Friendly name"
1300312979
},
1300412980
"digits": {
@@ -13353,11 +13329,7 @@
1335313329
"description": "Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage."
1335413330
},
1335513331
"friendly_name": {
13356-
"type": [
13357-
"string",
13358-
"null"
13359-
],
13360-
"minLength": 1,
13332+
"type": "string",
1336113333
"title": "Friendly name"
1336213334
},
1336313335
"user_verification": {

0 commit comments

Comments
 (0)