  import uuid
  
  from django.core.validators import (
      DecimalValidator, MaxLengthValidator, MaxValueValidator,
      MinLengthValidator, MinValueValidator, RegexValidator
  )
  from django.db import models
 
</s> remove     BaseRenderer, BrowsableAPIRenderer, JSONRenderer, OpenAPIRenderer
 </s> add     BaseRenderer, BrowsableAPIRenderer, JSONOpenAPIRenderer, JSONRenderer,
    OpenAPIRenderer </s> remove         return json.dumps(data, indent=2).encode('utf-8')
 </s> add         return json.dumps(data, cls=self.encoder_class, indent=2).encode('utf-8')
from datetime import timedelta
  import uuid
from datetime import timedelta
  
  from django.core.validators import (
      DecimalValidator, MaxLengthValidator, MaxValueValidator,
      MinLengthValidator, MinValueValidator, RegexValidator
  )
  from django.db import models
add keep keep keep keep keep keep
 Fix OpenAPISchema rendering for timedelta (#7641)

* Add failing test when rendering to json a schema with timedelta

* Fix JSONOpenAPIRenderer for fields with default=timedelta()

* fix isort

* fix test for python 3.5

Co-authored-by: Pierre Chiquet <pierre.chiquet@ubikey.fr> 
tests/schemas/views.py