Update get_view_description to conform to changes in DRF's version

related encode/django-rest-framework#5605
This commit is contained in:
Jeff Bradberry
2019-06-06 18:27:43 -04:00
parent 3f5c018c8a
commit ab587e7e6c
2 changed files with 7 additions and 25 deletions

View File

@@ -53,7 +53,6 @@ class AutoSchema(DRFAuthSchema):
return link
def get_description(self, path, method):
self.view._request = self.view.request
setattr(self.view.request, 'swagger_method', method)
description = super(AutoSchema, self).get_description(path, method)
return description