Skip to content

Commit ffb4baf

Browse files
authored
feat(Configuration): new helloasso_url field (#2018)
1 parent ebe07bf commit ffb4baf

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 4.2.9 on 2025-03-18 15:58
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("core", "0002_alter_configuration_application_open_source_code_url"),
9+
]
10+
11+
operations = [
12+
migrations.AddField(
13+
model_name="configuration",
14+
name="helloasso_url",
15+
field=models.URLField(
16+
blank=True, help_text="Le lien vers la page HelloAsso de l'association", max_length=500
17+
),
18+
),
19+
]

core/models.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Configuration(SingletonModel):
1616
help_text="La tagline de l'application",
1717
)
1818
application_about = RichTextField(blank=True, help_text="A propos de l'application")
19+
1920
# links
2021
application_open_source_code_url = models.URLField(
2122
max_length=500,
@@ -36,6 +37,7 @@ class Configuration(SingletonModel):
3637
blank=True,
3738
help_text="Le lien vers le test EcoIndex.fr du frontend",
3839
)
40+
3941
# social links
4042
application_facebook_url = models.URLField(
4143
max_length=500,
@@ -52,6 +54,14 @@ class Configuration(SingletonModel):
5254
blank=True,
5355
help_text="Le lien vers la page Linkedin de l'application",
5456
)
57+
58+
# ngo
59+
helloasso_url = models.URLField(
60+
max_length=500,
61+
blank=True,
62+
help_text="Le lien vers la page HelloAsso de l'association",
63+
)
64+
5565
# timestamps
5666
daily_stat_last_aggregated = models.DateTimeField(
5767
null=True,

0 commit comments

Comments
 (0)