Skip to content

Commit

Permalink
return none for empty datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
sidloki committed Nov 16, 2013
1 parent 0688b02 commit 5db3eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pform/fields.py
Expand Up @@ -381,7 +381,7 @@ def to_form(self, value):

def to_field(self, value):
if not value:
return null
return None

try:
result = iso8601.parse_date(value)
Expand Down Expand Up @@ -420,7 +420,7 @@ def to_form(self, value):

def to_field(self, value):
if not value:
return null
return None

try:
result = iso8601.parse_date(
Expand Down

0 comments on commit 5db3eef

Please sign in to comment.