#112 Do not crash if there is no start_date (fix #108)

Fusionné
jocelyn a fusionné 1 commits à partir de daimrod/fix-108-membershipfree-mandatory-date-fields vers FFDN/master il y a 8 ans
daimrod a commenté il y a 8 ans

Though the clean_fields() method checks the start_date field and is executed before the clean() method, the ValidationError is caught and the clean() method is called anyway. Hence, the clean() method can be called even if there is no start_date.

This prevents a crash in the clean() method even if there is no start_date.

Though the `clean_fields()` method checks the `start_date` field and is executed before the `clean()` method, the `ValidationError` is caught and the `clean()` method is called anyway. Hence, the `clean()` method can be called even if there is no `start_date`. This prevents a crash in the `clean()` method even if there is no `start_date`.
jocelyn a commenté il y a 8 ans
Propriétaire
https://code.ffdn.org/FFDN/coin/pulls/112/files#diff-96ec97a52954e15d0aa4aed2daece01e79a14e5R10 please share previous datetime module import line.
daimrod a commenté il y a 8 ans
Collaborateur

Updated to use date.today().

Thanks.

Updated to use `date.today()`. Thanks.
jocelyn a commenté il y a 8 ans
Propriétaire

That was not exactly my point, but that looks perfectly fine also :-)

That was not exactly my point, but that looks perfectly fine also :-)
Cette Pull Request a été fusionnée avec succès !
Connectez-vous pour rejoindre cette conversation.
Aucun jalon
Pas d'assignataire
2 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.