                  self.fail('invalid', value=data)
          return data
  
      def to_representation(self, value):
          return str(value)
  
  
  # Number types...
  
  class IntegerField(Field):
 
</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         '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')
        if self.uuid_format == 'hex_verbose':
            return str(value)
        else:
            return getattr(value, self.uuid_format)
                  self.fail('invalid', value=data)
          return data
  
      def to_representation(self, value):
        if self.uuid_format == 'hex_verbose':
            return str(value)
        else:
            return getattr(value, self.uuid_format)
  
  
  # Number types...
  
  class IntegerField(Field):
keep keep keep keep replace 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