Skip to content

Commit 7368f9c

Browse files
committed
Add competence_planification to LandModel and TerritoryIdentityCard
1 parent 5608c6d commit 7368f9c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

frontend/scripts/components/pages/Synthese/components/TerritoryIdentityCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ export const TerritoryIdentityCard = ({ landData, className }: TerritoryIdentity
122122
});
123123

124124
const population = populationData?.[0]?.population || null;
125-
const hasCompetenceUrba = true; // TODO: remove this once we have the competence urbanisme data
126-
125+
const hasCompetenceUrba = landData.competence_planification;
126+
console.log(landData.competence_planification)
127127
const identityItems = [
128128
{
129129
icon: "bi bi-geo-alt-fill",

frontend/scripts/services/types/land.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export type LandDetailResultType = {
179179
evolution_residences_secondaires_percent: number | null;
180180
evolution_residences_secondaires_absolute: number | null;
181181
densite_residences_secondaires: number | null;
182+
competence_planification: boolean;
182183
};
183184

184185
type LandDetailQueryArg = string | FetchArgs | {

public_data/models/administration/LandModel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ class ConsommationCorrectionStatus(models.TextChoices):
161161
evolution_residences_secondaires_percent = models.FloatField(null=True)
162162
evolution_residences_secondaires_absolute = models.FloatField(null=True)
163163
densite_residences_secondaires = models.FloatField(null=True)
164+
competence_planification = models.BooleanField()
164165

165166
class Meta:
166167
managed = False

0 commit comments

Comments
 (0)