- value=getattr(self,field,None)
- if isinstance (value,datetime):
- return datetime_to_string (value)
- elif isinstance (value,(int,float)):
+ value = getattr(self, field, None)
+ if isinstance(value, datetime):
+ return datetime_to_string(value)
+ elif isinstance(value, (int, float)):