Parcourir la source

Fix ISP creation through the web form

Gu1 il y a 11 ans
Parent
commit
0edb139bc8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      ffdnispdb/forms.py

+ 1 - 1
ffdnispdb/forms.py

@@ -146,7 +146,7 @@ class ProjectForm(Form):
         optstr('otherWebsites', dict(((w['name'], w['url']) for w in self.other_websites.data if w['name'])))
         optstr('email', self.contact_email.data)
         optstr('mainMailingList', self.main_ml.data)
-        optstr('creationDate', self.creation_date.data.isoformat())
+        optstr('creationDate', self.creation_date.data.isoformat() if self.creation_date.data else None)
         optstr('progressStatus', self.step.data)
         optstr('memberCount', self.member_count.data)
         optstr('subscriberCount', self.subscriber_count.data)