diff --git a/lemarche/www/tenders/forms.py b/lemarche/www/tenders/forms.py index 35f4ba796..dc4e57de9 100644 --- a/lemarche/www/tenders/forms.py +++ b/lemarche/www/tenders/forms.py @@ -107,6 +107,10 @@ def __init__(self, kind, questions_list=None, *args, **kwargs): if self.kind != tender_constants.KIND_TENDER: self.fields["external_link"].label = "Lien à partager" self.fields["external_link"].help_text = None + + if self.kind == tender_constants.KIND_TENDER: + self.fields["external_link"].required = True + self.fields["amount"].label = "Montant € estimé de votre besoin" self.fields["accept_share_amount"].label = self.fields["accept_share_amount"].help_text self.fields["external_link"].widget.attrs["placeholder"] = "https://www.example.fr"