Skip to content

Commit 3d5f330

Browse files
authored
feat(Configuration): new office_address & office_url fields (#2021)
1 parent ffb4baf commit 3d5f330

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by Django 4.2.9 on 2025-03-18 16:41
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("core", "0003_configuration_helloasso_url"),
9+
]
10+
11+
operations = [
12+
migrations.AddField(
13+
model_name="configuration",
14+
name="office_address",
15+
field=models.CharField(blank=True, help_text="L'adresse du bureau de l'association", max_length=255),
16+
),
17+
migrations.AddField(
18+
model_name="configuration",
19+
name="office_url",
20+
field=models.URLField(
21+
blank=True, help_text="Le lien vers la page du bureau de l'association", max_length=500
22+
),
23+
),
24+
]

core/models.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ class Configuration(SingletonModel):
6161
blank=True,
6262
help_text="Le lien vers la page HelloAsso de l'association",
6363
)
64+
office_address = models.CharField(
65+
max_length=255,
66+
blank=True,
67+
help_text="L'adresse du bureau de l'association",
68+
)
69+
office_url = models.URLField(
70+
max_length=500,
71+
blank=True,
72+
help_text="Le lien vers la page du bureau de l'association",
73+
)
6474

6575
# timestamps
6676
daily_stat_last_aggregated = models.DateTimeField(

0 commit comments

Comments
 (0)