  
  
  class UUIDField(Field):
      default_error_messages = {
          'invalid': _('"{value}" is not a valid UUID.'),
      }
  
      def __init__(self, **kwargs):
 
</s> remove         '825d7aeb05a945b5a5b705df87923cda': uuid.UUID('825d7aeb-05a9-45b5-a5b7-05df87923cda')
 </s> add         '825d7aeb05a945b5a5b705df87923cda': uuid.UUID('825d7aeb-05a9-45b5-a5b7-05df87923cda'),
        'urn:uuid:213b7d9b-244f-410d-828c-dabce7a2615d': uuid.UUID('213b7d9b-244f-410d-828c-dabce7a2615d'),
        284758210125106368185219588917561929842: uuid.UUID('d63a6fb6-88d5-40c7-a91c-9edf73283072') </s> remove                 return uuid.UUID(data)
 </s> add                 if isinstance(data, six.integer_types):
                    return uuid.UUID(int=data)
                else:
                    return uuid.UUID(hex=data) </s> remove         return str(value)
 </s> add         if self.uuid_format == 'hex_verbose':
            return str(value)
        else:
            return getattr(value, self.uuid_format)
    valid_formats = ('hex_verbose', 'hex', 'int', 'urn')

  
  
  class UUIDField(Field):
    valid_formats = ('hex_verbose', 'hex', 'int', 'urn')

      default_error_messages = {
          'invalid': _('"{value}" is not a valid UUID.'),
      }
  
      def __init__(self, **kwargs):
keep keep add keep keep keep keep keep
 Add 'format' argument to UUIDField

To allow serializations to control the representation format of a
UUID value 
rest_framework/fields.py