code: def nested_row(self, obj, nested):
          '''Convert an object into a flat csv row'''
          row = self.to_row(obj)
          for name, getter in self.get_nested_fields():
              content = ''
              if getter is not None:
                  try:
                      content = safestr(getter(nested))
                  except Exception, e:  # Catch all errors intentionally.
                      log.error('Error exporting CSV for {name}: {error}'.format(
                          name=self.__class__.__name__, error=e))
              row.append(content)
          return rof nested_row(self, obj, nested):
          '''Convert an object into a flat csv row'''
          row = self.to_row(obj)
          for name, getter in self.get_nested_fields():
              content = ''
              if getter is not None:
                  try:
                      content = safestr(getter(nested))
                  except Exception, e:  # Catch all errors intentionally.
                      log.error('Error exporting CSV for {name}: {error}'.format(
                          name=self.__class__.__name__, error=e))
              row.append(content)
          return row
docs: Convert an object into a flat csv row