main_image foo bar

This commit is contained in:
Sanj 2012-01-04 19:12:12 +05:30
parent 046b4c26b9
commit 2ddfd88511

View File

@ -97,7 +97,7 @@ class ItfModel(models.Model):
else: else:
imgfield = self.get_modelextra().default_image #FIXME!! imgfield = self.get_modelextra().default_image #FIXME!!
if imgfield.name == '': if imgfield is None or imgfield.name == '':
imgfield = self.get_modelextra().default_image imgfield = self.get_modelextra().default_image
if imgfield: if imgfield: