Skip to content

Commit 073aa7a

Browse files
Fix wagtail familles - pas de contenu (#1801)
1 parent 0fa873f commit 073aa7a

File tree

4 files changed

+36
-15
lines changed

4 files changed

+36
-15
lines changed

.github/workflows/_cd-by-environment.yml renamed to .github/workflows/_deploy-airflow.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ on:
66
required: true
77

88
jobs:
9-
deploy-django:
10-
name: 🗺️ Carte & assistant
11-
uses: ./.github/workflows/_deploy-on-scalingo.yml
12-
secrets: inherit # pragma: allowlist secret`
13-
with:
14-
environment: ${{ inputs.environment }}
15-
# Name of environment variable set in github environment
16-
app_name_key: DJANGO_SCALINGO_APP_NAME
17-
189
deploy_airflow-webserver:
1910
name: 🔄 Airflow webserver
2011
uses: ./.github/workflows/_deploy-on-clever-cloud.yml
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
environment:
5+
type: string
6+
required: true
7+
8+
jobs:
9+
deploy-django:
10+
name: 🗺️ Carte & assistant
11+
uses: ./.github/workflows/_deploy-on-scalingo.yml
12+
secrets: inherit # pragma: allowlist secret`
13+
with:
14+
environment: ${{ inputs.environment }}
15+
# Name of environment variable set in github environment
16+
app_name_key: DJANGO_SCALINGO_APP_NAME
17+
18+
# Address actions/missing-workflow-permissions rule in
19+
# code scanning alerts
20+
permissions:
21+
contents: read
22+

.github/workflows/cd.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,21 @@ jobs:
1313
name: 🤖 CI
1414
uses: ./.github/workflows/ci.yml
1515

16-
preprod:
17-
name: 🟠 Preprod
18-
uses: ./.github/workflows/_cd-by-environment.yml
16+
webapp:
17+
name: 🟠 Webapp
18+
uses: ./.github/workflows/_deploy-webapp.yml
1919
secrets: inherit # pragma: allowlist secret`
2020
needs: [ci]
2121
with:
2222
environment: preprod
2323

24+
airflow:
25+
name: 🟠 Airflow
26+
uses: ./.github/workflows/_deploy-airflow.yml
27+
secrets: inherit # pragma: allowlist secret`
28+
needs: [ci]
29+
with:
30+
environment: preprod
2431

2532
# Common release-drafter configuration
2633
# From https://github.com/marketplace/actions/release-drafter
@@ -53,9 +60,9 @@ jobs:
5360
config-name: release-config.yml
5461
env:
5562
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
needs: [preprod]
63+
needs: [webapp]
5764
if: ${{ !contains( github.ref_name, 'hotfix') }}
58-
65+
5966
# Hotfix-only release draft update
6067
update_release_draft_for_hotfix:
6168
# Uncomment when anchor are supported in GitHub Actions
@@ -71,4 +78,4 @@ jobs:
7178
config-name: release-config.yml
7279
env:
7380
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
if: ${{ contains( github.ref_name, 'hotfix') }}
81+
if: ${{ contains( github.ref_name, 'hotfix') }}

qfdmd/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def famille(self):
8181
def compiled_body(self):
8282
if not getattr(self, "body") and self.famille:
8383
return self.famille.specific.body
84+
return self.body
8485

8586
genre = models.CharField("Genre", choices=[("m", "Masculin"), ("f", "Féminin")])
8687
nombre = models.IntegerField("Nombre", choices=[(1, "singulier"), (2, "pluriel")])

0 commit comments

Comments
 (0)