Skip to content

Commit

Permalink
Résolution d'une erreur d etype lors de la création dans l'admin d'un…
Browse files Browse the repository at this point in the history
… programme (#1577)
  • Loading branch information
kolok authored Sep 26, 2024
1 parent db35050 commit 4de24d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conventions/models/convention.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ def is_avenant(self):
@cached_property
def is_outre_mer(self) -> bool:
# Saint-Pierre-et-Miquelon (975) n'est pas dans cette liste
return int(self.programme.code_insee_departement) in [971, 972, 973, 974, 976]
return self.programme.code_insee_departement and int(
self.programme.code_insee_departement
) in [971, 972, 973, 974, 976]

@cached_property
def is_denonciation(self):
Expand Down

0 comments on commit 4de24d2

Please sign in to comment.