Skip to content

Commit

Permalink
don't format number if number is equal to
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp1 committed Mar 10, 2014
1 parent 1bf0b02 commit db919bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/CMFPlomino/fields/number.py
Expand Up @@ -113,7 +113,7 @@ def format_value(self, v):
"""
"""
str_v = ""
if self.format and v is not None:
if self.format and v is not None and v != "":
try:
str_v = self.format % v
except:
Expand Down

0 comments on commit db919bf

Please sign in to comment.