Browse Source

fix(models): erreur sur date absente

master
François Poulain 2 months ago
parent
commit
d2e09409a7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      biohdf/base/models.py

+ 2
- 0
biohdf/base/models.py View File

@@ -684,6 +684,8 @@ class Evenement(mixins.GeoLocated, SitePage):

@property
def get_date_range(self):
if not self.date_debut or not self.date_fin:
return ""
date_debut = formats.date_format(self.date_debut, "DATE_FORMAT")
date_fin = formats.date_format(self.date_fin, "DATE_FORMAT")
if date_debut == date_fin:

Loading…
Cancel
Save