Skip to content

Commit

Permalink
Fixed small issue with blank fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Haineault committed Mar 1, 2013
1 parent 48c8231 commit cd34cf7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion editlive/adaptors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ def render_value(self, value=None):
the placeholder.
"""
v = value or self.get_value()
return apply_filters(v, self.template_filters, self.load_tags)
if v is None:
return ''
else:
return apply_filters(v, self.template_filters, self.load_tags)

def save(self):
"""Saves the object to database.
Expand Down

0 comments on commit cd34cf7

Please sign in to comment.