Skip to content

Commit

Permalink
Update conventions/models/convention.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matthieu Etchegoyen <[email protected]>
  • Loading branch information
kolok and etchegom authored Feb 7, 2025
1 parent 9831f07 commit dbcaf03
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions conventions/models/convention.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,16 +269,16 @@ def lot(self) -> Lot:
return self.lots.first()

@property
def is_pls_financement_type(self):
return self.lot.financement in [
Financement.PLS,
Financement.PLS_DOM,
Financement.PALUCOM,
Financement.PALULOS,
Financement.PALU_AV_21,
Financement.PALU_COM,
Financement.PALU_RE,
]
def is_pls_financement_type(self) -> bool:
if lot := self.lot:
return lot.financement in [
Financement.PLS,
Financement.PLS_DOM,
Financement.PLS_AV_21,
Financement.PLS_CD,
Financement.PLS_AV_21_CD,
]
return False

@property
def attribution_type(self):
Expand Down

0 comments on commit dbcaf03

Please sign in to comment.