Ticket #5574: base_serializer.diff

File base_serializer.diff, 632 bytes (added by Chris Henderson <chris@…>, 17 years ago)
  • django/core/serializers/base.py

     
    5656        """
    5757        if isinstance(field, models.DateTimeField):
    5858            value = getattr(obj, field.name).strftime("%Y-%m-%d %H:%M:%S")
    59         elif isinstance(field, models.FileField):
    60             value = getattr(obj, "get_%s_url" % field.name, lambda: None)()
    6159        else:
    6260            value = field.flatten_data(follow=None, obj=obj).get(field.name, "")
    6361        return smart_unicode(value)
Back to Top